WES Work Planning & Release
Core Subdomain · WES tier · the conductor
wes-work-planning releases work continuously — waveless, one unit at
a time, earliest-CPT-first — and performs flow balancing from live buffer
telemetry so that every parcel makes its truck without the floor ever being
starved or flooded. The shift's forecast and labour plan are decided in
warehouse-planning, not here: the former POST /paths/{pathId}/charge and POST /paths/{pathId}/plan were removed
(ADR-0049; 410 for one release, gone since 2026-11-21).
It sits downstream of seven upstream event suppliers (inventory-storage,
workforce-management, order-management, network-inventory-planning's
transfer work demand (ADR-0033), slotting-optimization's approved slot
plans (ADR-0040: one RELOCATE work unit per move), pick-face-replenishment's
replenishment requests (ADR-0042: one REPLENISH work unit per request, an
opt-in consumer that is off in the reference deployment) and product-master,
whose ProductClassified it keeps as a local copy for release-time hazmat and
fragile hints), conforms to one Generic context (process-path-management's
catalogue; the facility-layout travel-distance lookup went with the shift
plan, ADR-0049), closes a control loop with fulfillment-execution
(WorkReleased out, TaskCompleted back), and reports remaining path
capacity (PathCapacityChanged) to order-management and
network-fulfillment. Following
the industry WMS/WES/WCS framing this platform adopts: WMS says what must
happen, WCS says how equipment performs it, and this service — the WES
tier's core — decides which activities happen when. That is what
"conductor" means concretely, not a metaphor added for color.
Because this context is classified Core, the platform accepts real cost for it: a hand-written domain model with no ORM, invariants enforced in the aggregate with a failing-path test for each, a release policy as a first-class, replaceable domain-service object, executable architecture fitness tests, and mutation testing on the domain packages. See Bounded Context Canvas for the full justification.
This context's pages
- Business Context: why waveless, continuous release beats wave-based batching, and what flow balancing means operationally (Drum-Buffer-Rope with CPT as the drum).
- Ubiquitous Language: Charge, CPT, Process Path, Work Pool, WorkUnit, the retired ShiftPlan/PathPlan, and the traps where the same word means something different in another bounded context.
- Core Domain Chart (ddd-crew core-domain-charts): why this context is Core.
- 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
WorkPoolaggregate, with its state, invariants, corrective policies, commands, events, throughput and size. - Domain Events: the eight
past-tense domain events, including the three that siblings consume today
(
WorkReleased,PathCapacityChangedand, opt-in and off by default inorder-management,WorkUnitCreated), and the events this context consumes. - 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.
- Async API: the Kafka integration in narrative form, covering the shared envelope, the topics published and consumed, and real payloads.
Every page above except the Business Context and the Async API narrative
is synced from the wes-work-planning repository.
Elsewhere
- Repository: github.com/IQVO/wes-work-planning
- ADR index: links to this context's own decision records.
- Generated references on this site: REST and AsyncAPI.