Skip to main content

Ubiquitous Language

Code identifiers are the Go names from the design model's ul list (package and type), checked against internal/domain of the built service; consumed marks a term that this context only reads from an event. The "Not to be confused with" column is this page's reading, added to keep neighbouring terms apart; it is not in the design model.

This context's terms​

From contexts[dock-scheduling].ul.

TermDefinitionCode identifierNot to be confused with
Dock AppointmentA booked window on one door for one carrier visit, inbound or outbound.dockappointment.DockAppointmentYard Visit (yard-management: the physical passage through the gate, with the arrival and departure that really happened)
Door WindowThe half-open interval [start, end) an appointment holds on its door.dockappointment.WindowOperating hours (when the door is open at all)
Door CalendarA site's door opening hours, closures and booking settings.dockcalendar.DockCalendarDock Appointment (a booking made against the calendar)
ClosureA period a door cannot be booked (maintenance, damage).dockcalendar.ClosureNo-Show (a carrier that did not come, not a door that cannot be used)
Arrival StatusEARLY, ON_TIME or LATE, from the gate arrival against the window and the tolerance.dockappointment.ArrivalStatusAppointment state (BOOKED, CHECKED_IN and the rest describe the lifecycle, not punctuality)
No-ShowA booked appointment whose carrier did not arrive by window end plus grace.dockappointment.NoShow (the state NO_SHOW, event DockAppointmentNoShow)Cancelled (a decision by the carrier or the site, with a CancellationReason)
SCACStandard Carrier Alpha Code identifying the carrier.shared.CarrierCarrier name (free text, at most 100 characters)
CPTCritical pull time: the fleet's outbound cutoff, which the network uses as its pickup cutoff.consumed from process-path-managementWindow end (the end of one appointment, not a site-wide cutoff)

Value objects and states of the aggregates​

From aggregates[DockAppointment] and aggregates[DockCalendar]; these are terms the design model uses but does not list in ul.

TermDefinitionCode identifier
DirectionINBOUND or OUTBOUND; must be allowed by the door's dockFlow.Direction(INBOUND or OUTBOUND)
Appointment stateBOOKED, CHECKED_IN, COMPLETED, CANCELLED, NO_SHOW.DockAppointment states
CarrierThe carrier's name and optional SCAC.Carrier with name and scac
Inbound refsThe ASN numbers an inbound appointment covers.InboundRefs with asn_numbers
Outbound refsThe cpt_id and the shipment references an outbound appointment covers.OutboundRefs with cpt_id and shipment_refs
ETAThe estimated arrival: eta_at, reported_at and source.Eta
Expected sealThe seal number the carrier declares when booking; yard-management compares it at the gate.ExpectedSeal with seal_number
Operating hoursOpening and closing times by weekday and time zone, per door or as the site default.OperatingHours
Calendar settingsmax_window_minutes (240), slot_granularity_minutes (15), arrival_tolerance_minutes, no_show_grace_minutes.Settings
Arrival toleranceThe site's allowed deviation around the window start, used for ArrivalStatus and for the ETA risk test.arrival_tolerance_minutes
No-show graceThe time after window_end before the sweep marks a BOOKED appointment NO_SHOW.no_show_grace_minutes
MaxWindowThe longest window, 4 hours (ErrInvalidWindow); a site may lower it, never raise it.dockappointment.HardMaxWindow, dockappointment.Rules
Cancellation reasonCARRIER_REQUEST, SITE_REQUEST, ASN_CANCELLED, TURNED_AWAY.dockappointment.Reason
At-risk causeLATE_ETA or DOOR_REASSIGNED_OVERLAP.dockappointment.AtRiskCause
ProvenanceWhere an appointment came from; the design model names legacy-import, which is historical: nothing sets it since the legacy importer was removed (ADR 0011).dockappointment.Provenance (native or legacy-import)

Neighbour terms used here​

TermDefinition (owner)Code identifier
YardThe enclosed area outside a site's four walls: gate, parking spots and dock doors (yard-management).none
Yard VisitOne tractor and driver passing the gate, from check-in to check-out (yard-management).yardvisit.Visit
TrailerAny towable unit on site, including a container on a chassis (yard-management).trailer.Trailer
Dock DoorA Dock location (facility-layout role Dock) with a dockFlow of Inbound, Outbound or Both (yard-management's term; this context's DoorView holds the same slots).shared.Location
SealThe numbered seal on a trailer's doors; INTACT, BROKEN or NONE (yard-management).trailer.SealState
DetentionCarrier waiting time charged beyond the agreed free time; the free time is a site setting in yard-management (yard-management).yardpolicy.Policy
dockFlowInbound, Outbound or Both on a dock slot (facility-layout).field of LocationSlotRegistered
Zone and siteCodeA zone belongs to a site: ZoneRegistered carries zoneId and siteCode; a door reaches its site only through its zoneId (facility-layout).field of ZoneRegistered
ASNThe advance shipping notice an inbound appointment covers, identified by asn_number (inbound-receiving).field asn_number

No fleet translation table: this context uses the same names as the fleet. The one rename to remember is ownership: the DockAppointment that inbound-receiving used to own is this context's DockAppointment (YD-0002), with the same event names and a superset of the payload fields.