Skip to main content

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​

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​