Workforce Management
Workforce Management makes the labor picture of a shift legible and enforceable: it records who is on shift and what they are qualified for, lets a human commit a split of headcount across process paths, tracks where each person actually is as that split drifts, and surfaces the gap — without ever deciding what any individual person should do next.
It owns three things: who is on (AssociateShift), what the plan is
(ShiftPlan), and where people actually are (LaborAssignment). It
stops deliberately at the path boundary — it never links an associate to
a specific task, by design (ADR-0002), leaving task dispatch entirely to
fulfillment-execution. Since ADR 0020, it also folds labor-performance's
observed idle share into GetStaffingGap (observedIdlePct) and into
ProposePathPlan's headcount trim — a staffing signal, never a second
source of truth about task dispatch. Since ADR 0043 it also keeps a local
copy of warehouse-planning's published LabourPlanCommitted and proposes
heads from it, so the requirement is read, never computed twice; this
context keeps labour supply. Its one synchronous dependency is a
fail-loud read of fulfillment-execution's installed station capacity on
every CommitShiftPlan (ADR 0014) — a count, not tasks.
This context's pages
- Business Context: the domain vision, the two planning horizons, and why stopping at the path boundary is a deliberate scope limit rather than a gap.
- Ubiquitous Language:
ShiftPlan,PathPlan,AssociateShift,LaborAssignment,Certification,PathUnderstaffed,Process pathand more, with the definitions the code implements. - Core Domain Chart (ddd-crew core-domain-charts): why this context is Supporting.
- Bounded Context Canvas (ddd-crew bounded-context-canvas): purpose, strategic classification, roles, inbound and outbound communication, business decisions, assumptions 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
ShiftPlanandLaborAssignmentaggregates, with their state transitions, invariants, corrective policies, commands and events. - Domain Events: all ten
events and what raises them. Only one,
ShiftPlanCommitted, reaches other contexts (wes-work-planningandwarehouse-planning), published as one message perPathPlanline. - 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. It covers
ShiftPlanCommittedtowes-work-planningandwarehouse-planning, the two opt-in sibling topics it consumes (process-path-managementandlabor-performance) andwarehouse-planning'sLabourPlanCommitted, which it keeps as the required heads (ADR 0043).
Every page above except the Business Context and the Async API narrative
is synced from the workforce-management repository.
Elsewhere
- Repository: github.com/IQVO/workforce-management
- ADR index: links to this context's own decision records.
- Generated references on this site: REST and AsyncAPI.