Skip to main content

Event Standard (CloudEvents)

Generated from the model

This page is generated from model/model.yaml by scripts/gen_pages.py. Edit the model, then regenerate; CI fails when the page and the model disagree.

Spec: CloudEvents 1.0, structured JSON, mandatory on every Kafka message (fleet rule).

FieldRule
typecom.warehouse.<subdomain>.<context>.<entity>.<EventName>
subdomainwms for both contexts (decision D2, as built)
entity_rule<entity> is the lower-case aggregate that raises the event, no separators (dockappointment, dockcalendar, carrier, yardvisit, trailer, yardmove, yardcheck).
source/warehouse/<context>
dataschemaurn:warehouse:<context>:events:<EventName>:v1 on the integration topic, urn:warehouse:<context>:analytics:<EventName>:v1 on the analytics twin
subjectaggregate root id (also the Kafka partition key)
topicwarehouse.<context>.events
analytics_topicwarehouse.<context>.analytics
payload_casesnake_case (inbound-receiving precedent)
version_fieldevery event carries the aggregate version (starts 1, +1 per accepted change); readers apply only version > stored

Site key: site_id on every yard event is facility-layout's siteCode. A door or spot is mapped to its site through LocationSlotRegistered.zoneId and ZoneRegistered{zoneId, siteCode}; never by parsing a location code.

Events marked analytics only go ONLY to warehouse.<context>.analytics; integration events go to warehouse.<context>.events and, as a twin with the same id, type, key and data, to warehouse.<context>.analytics (one outbox row, up to two messages).

dock-scheduling published events​

EventCloudEvents typeStreamDataConsumers
DockAppointmentBookedcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentBookedintegration + analyticsappointment_id, site_id, direction, door_code, carrier, carrier_scac, window_start, window_end, asn_numbers, cpt_id, shipment_refs, expected_seal_number, arrival_tolerance_minutes, provenance, version, x12_status, cbv_biz_step, read_point_gln, initiated_byyard-management, warehouse-planning, inbound-receiving, outbound-shipping
DockAppointmentRescheduledcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentRescheduledintegration + analyticsappointment_id, site_id, door_code, previous_door_code, window_start, window_end, previous_window_start, previous_window_end, arrival_tolerance_minutes, version, x12_status, cbv_biz_step, read_point_gln, initiated_byyard-management, warehouse-planning, inbound-receiving
DockAppointmentCancelledcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentCancelledintegration + analyticsappointment_id, site_id, door_code, reason, version, x12_status, cbv_biz_step, read_point_gln, initiated_byyard-management, warehouse-planning, inbound-receiving
DockAppointmentNoShowcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentNoShowintegration + analyticsappointment_id, site_id, door_code, direction, carrier_scac, window_end, version, x12_status, cbv_biz_step, read_point_gln, initiated_byyard-management, warehouse-planning, exception-management
DockAppointmentCheckedIncom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentCheckedInanalytics onlyappointment_id, site_id, door_code, checked_in_at, arrival_status, visit_id, version, x12_status, cbv_biz_step, read_point_glnanalytics only
DockAppointmentDoorReassignedcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentDoorReassignedintegration + analyticsappointment_id, site_id, from_door_code, to_door_code, version, x12_status, cbv_biz_step, read_point_glninbound-receiving
DockAppointmentCompletedcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentCompletedanalytics onlyappointment_id, site_id, door_code, completed_at, version, x12_status, cbv_biz_step, read_point_glnanalytics only
DockAppointmentAtRiskcom.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentAtRiskanalytics onlyappointment_id, site_id, door_code, eta_at, window_start, window_end, cause, x12_status, cbv_biz_step, read_point_gln, initiated_byanalytics only
DoorClosureScheduledcom.warehouse.wms.dock-scheduling.dockcalendar.DoorClosureScheduledintegration + analyticssite_id, closure_id, door_code, from, to, reason, version, read_point_glnyard-management
DoorClosureLiftedcom.warehouse.wms.dock-scheduling.dockcalendar.DoorClosureLiftedintegration + analyticssite_id, closure_id, door_code, version, read_point_glnyard-management
DoorOperatingHoursDeclaredcom.warehouse.wms.dock-scheduling.dockcalendar.DoorOperatingHoursDeclaredanalytics onlysite_id, door_code, operating_hours, versionanalytics only
CarrierRegisteredcom.warehouse.wms.dock-scheduling.carrier.CarrierRegisteredintegration + analyticsscac, name, usdot, mc, status, reason, suspended_at, version, initiated_bynone yet
CarrierSuspendedcom.warehouse.wms.dock-scheduling.carrier.CarrierSuspendedintegration + analyticsscac, reason, suspended_at, version, initiated_bynone yet
CarrierReinstatedcom.warehouse.wms.dock-scheduling.carrier.CarrierReinstatedintegration + analyticsscac, reinstated_at, version, initiated_bynone yet

yard-management published events​

EventCloudEvents typeStreamDataConsumers
VisitCheckedIncom.warehouse.wms.yard-management.yardvisit.VisitCheckedInintegration + analyticsvisit_id, site_id, carrier, carrier_scac, carrier_flag, purpose, appointment_id, trailers, arrived_at, version, x12_status, cbv_biz_stepdock-scheduling, inbound-receiving
VisitRejectedcom.warehouse.wms.yard-management.yardvisit.VisitRejectedintegration + analyticsvisit_id, site_id, carrier_scac, appointment_id, reason, rejected_atdock-scheduling, exception-management
VisitCheckedOutcom.warehouse.wms.yard-management.yardvisit.VisitCheckedOutanalytics onlyvisit_id, site_id, trailers_out, departed_at, on_site_minutes, version, x12_status, cbv_biz_stepanalytics only
TrailerDockedcom.warehouse.wms.yard-management.trailer.TrailerDockedintegration + analyticstrailer_id, site_id, door_code, appointment_id, asn_numbers, visit_id, docked_at, version, seal_state, seal_class, hazmat_class, un_number, requires_temperature_controldock-scheduling, outbound-shipping
TrailerUndockedcom.warehouse.wms.yard-management.trailer.TrailerUndockedintegration + analyticstrailer_id, site_id, door_code, appointment_id, undocked_at, versiondock-scheduling
TrailerParkedcom.warehouse.wms.yard-management.trailer.TrailerParkedanalytics onlytrailer_id, site_id, spot_code, versionanalytics only
DoorWorkStartedcom.warehouse.wms.yard-management.trailer.DoorWorkStartedanalytics onlytrailer_id, site_id, door_code, appointment_id, started_at, versionanalytics only
DoorWorkCompletedcom.warehouse.wms.yard-management.trailer.DoorWorkCompletedintegration + analyticstrailer_id, site_id, door_code, appointment_id, completed_at, load_state, versionoutbound-shipping
TrailerDepartedcom.warehouse.wms.yard-management.trailer.TrailerDepartedintegration + analyticstrailer_id, site_id, visit_id, departed_at, dwell_minutes, load_state, seal_number, version, seal_state, seal_class, x12_status, cbv_biz_stepoutbound-shipping
TrailerSecuredcom.warehouse.wms.yard-management.trailer.TrailerSecuredintegration + analyticstrailer_id, site_id, door_code, method, secured_at, versionnone yet
TrailerSecuringReleasedcom.warehouse.wms.yard-management.trailer.TrailerSecuringReleasedintegration + analyticstrailer_id, site_id, door_code, released_at, versionnone yet
InspectionCompletedcom.warehouse.wms.yard-management.inspection.InspectionCompletedintegration + analyticsinspection_id, site_id, trailer_id, visit_id, template_id, template_version, gate, outcome, condition_grade, completed_at, failed_item_codes, cbv_biz_step, cbv_dispositionnone yet
InspectionFailedcom.warehouse.wms.yard-management.inspection.InspectionFailedintegration + analyticsinspection_id, site_id, trailer_id, template_id, gate, failed_items, failed_at, hold_placed, cbv_biz_step, cbv_dispositionexception-management
SealExceptionRaisedcom.warehouse.wms.yard-management.trailer.SealExceptionRaisedintegration + analyticstrailer_id, site_id, appointment_id, expected_seal_number, found_seal_number, raised_atexception-management
TrailerDwellExceededcom.warehouse.wms.yard-management.trailer.TrailerDwellExceededintegration + analyticstrailer_id, site_id, kind, dwell_minutes, threshold_minutes, location_codeexception-management
TrailerHeldcom.warehouse.wms.yard-management.trailer.TrailerHeldanalytics onlytrailer_id, site_id, reason, version, cbv_dispositionanalytics only
TrailerHoldReleasedcom.warehouse.wms.yard-management.trailer.TrailerHoldReleasedanalytics onlytrailer_id, site_id, versionanalytics only
YardMoveRequestedcom.warehouse.wms.yard-management.yardmove.YardMoveRequestedanalytics onlymove_id, site_id, trailer_id, appointment_id, performer, from_location, to_location, reason, due_by, versionanalytics only
YardMoveClaimedcom.warehouse.wms.yard-management.yardmove.YardMoveClaimedanalytics onlymove_id, site_id, hostler_ref, claimed_at, versionanalytics only
YardMoveLeaseExpiredcom.warehouse.wms.yard-management.yardmove.YardMoveLeaseExpiredanalytics onlymove_id, site_id, hostler_ref, versionanalytics only
YardMoveCompletedcom.warehouse.wms.yard-management.yardmove.YardMoveCompletedanalytics onlymove_id, site_id, trailer_id, performer, hostler_ref, from_location, to_location, actual_location, reason, completed_at, duration_seconds, versionanalytics only
YardMoveCancelledcom.warehouse.wms.yard-management.yardmove.YardMoveCancelledanalytics onlymove_id, site_id, reason, versionanalytics only
YardCheckClosedcom.warehouse.wms.yard-management.yardcheck.YardCheckClosedintegration + analyticsyard_check_id, site_id, closed_at, discrepanciesexception-management