order-management
CLAUDE.md titles this repository directly: "Order Management
(Generic/Supporting Bounded Context — order intake, allocation,
release)."
Generic/Supporting — a rare acknowledgment in this fleet that DDD's three-way split is a spectrum. The reference model's Order Management / ERP interface capability is Generic (a commodity integration surface most WMS platforms ship similarly), but this context also plays a Supporting operational role as the platform's previously-missing upstream front door. See Subdomain Classification for the fleet-wide verdict and Bounded Context Canvas for the full justification.
What it does
Order Management is the missing upstream Open Host Service for the
warehouse-systems fleet. It owns Order and OrderLine as
first-class, validated aggregates: intake, per-line stock allocation (via
inventory-storage), a delivery promise derived from fulfillment capability
(a CPT window, per
ADR-0014,
re-promised when fulfillment reports a missed CPT per
ADR-0018),
release of allocated work (now choreographed over Kafka to wes-work-planning, per
ADR-0005),
and cancellation up to the release boundary. Since
ADR-0020
it also accepts held, deadline-constrained orders from
network-fulfillment (allocate now, release or cancel later).
Before it existed, "an order" was not a modelled thing anywhere in this
platform — it was an unowned, unvalidated string, independently reinvented
three different ways: demandRef on inventory-storage's Reservation,
reference on wes-work-planning's WorkUnit, and Reference on
fulfillment-execution's Task. This context makes OrderId a real
identity and becomes the upstream that supplies it to the others.
This context's pages
- Business Context: the domain vision and the problem this context solves, in business language.
- Ubiquitous Language: the exact vocabulary this context uses, including Order, OrderLine, Status, Allocation, Release, Promise, Hold, Backordered and FulfillmentClass.
- Core Domain Chart (ddd-crew core-domain-charts): why this context sits between Generic and Supporting.
- Bounded Context Canvas (ddd-crew bounded-context-canvas): purpose, strategic classification, domain roles, inbound and outbound communication, business decisions, assumptions, verification metrics and open questions.
- Context Map (ddd-crew context-mapping): every upstream and downstream relationship with its pattern, technology and status.
- Aggregate Design Canvas
(ddd-crew aggregate-design-canvas):
the
Orderaggregate, with its state transitions, invariants, commands, events, throughput and size. - Domain Events: the twelve
past-tense events this context declares. Four of them
(
OrderAllocated,OrderPartiallyAllocated,OrderRepromisedandSiteSkuDemandChanged) go to the integration topicwarehouse.order-management.events;OrderReleaseUnconfirmed(ADR 0043) is analytics-only. The page also covers the CloudEvents types it consumes from sibling contexts. Ondevelopit consumeswarehouse-planning's capacity-plan events,CapacityPlanSupersededincluded, into a planned-capacity read model (ADR 0031, 0052, 0053: a plan matches an order's site by itssite_id, else by itslocation; opt-in withPLANNED_CAPACITY_CONSUMER_GROUP),product-master'sProductClassifiedinto a localproduct_classification_copy(ADR 0036;PRODUCT_CLASSIFICATION_MODE=kafkain the reference deployment), and, opt-in withRELEASE_CONFIRMATION_MODE=kafka(off by default),wes-work-planning'sWorkUnitCreatedto confirm each released order line. - Domain Message Flow (ddd-crew domain-message-flow-modelling): key scenarios as commands, events and queries.
- EventStorming (ddd-crew eventstorming-glossary-cheat-sheet): process-level boards.
- Class Diagram: the domain model as it exists in the code.
- Entity Relationship: the persisted tables.
- Sequence Diagrams: the main runtime interactions.
Every page above except the Business Context is synced from the
order-management repository. This context has no Async API narrative
page. Its generated AsyncAPI reference is linked below.
Elsewhere
- Repository: github.com/IQVO/order-management
- Own docs site: iqvo.github.io/order-management
- Generated references on this site: REST and AsyncAPI
- ADR index: links to this context's own decision records.
- Fleet context map: Context Map