Skip to main content

Subdomain classification

Process Path Management is a Generic subdomain. It publishes under the wes CloudEvents segment (Subdomain = "wes" in internal/adapters/kafka/cloudevents/cloudevents.go), so every event type starts with com.warehouse.wes.process-path-management.. The tier (wes) and the classification (Generic) are independent: the tier groups contexts by the layer they run in, the classification by how much competitive advantage they carry.

This matches ADR 0001, the Core Domain Chart (point at complexity 0.58, differentiation 0.22) and the fleet table in warehouse-docs.

Why Generic​

QuestionAnswer from this codebase
Does it decide anything that makes the warehouse faster or cheaper than a competitor's?No. It declares what a path is (matchPrefix, capabilities, cycle time, eligibility) and when trucks leave (CPT cutoffs). Dispatch, release, staffing and the order promise are decided by its consumers.
Is the model well understood in the industry?Yes. Process-path / labour-path catalogues and carrier cutoff tables are standard configuration in commercial WMS/WES products.
Why build it instead of keeping a file?Several contexts need the same definition and none is its natural owner. It replaced a static YAML file that three services loaded at boot, with no owner, audit trail or way to change it without redeploying consumers (ADR 0002).
Is it complex?Moderately: three aggregates (ProcessPath, CPTSchedule, ProcessFlow), two cross-aggregate rules enforced with row locks (ADR 0028, ADR 0042), seven event types. Most of the weight is infrastructure (outbox, idempotency keys, optimistic concurrency, analytics projector). Complexity does not make a subdomain Core.
Why not Supporting?Supporting means fleet-specific logic that is still not a differentiator. The catalogue's rules are generic configuration rules; its fleet-specific part is only vocabulary (capability names, the matchPrefix convention).

What would change the verdict​

If CPT feasibility (can this order make this truck through this path?) moved here from order-management, the context would start making a promise decision and would move up the differentiation axis. That would need a new ADR and a re-classification in warehouse-docs.

Neighbours​

Classifications copied from warehouse-docs docs/strategic-design/subdomain-classification.md (branch main, read 2026-10-09; the dock-scheduling and outbound-shipping rows read 2026-11-14). Do not edit them here; change them there.

ContextRelationship to this serviceClassificationCloudEvents tier
fulfillment-executionConsumes warehouse.process-path-management.eventsCorewes
wes-work-planningConsumes the events topicCorewes
workforce-managementConsumes the events topicSupportingwes
order-managementConsumes the events topic, including CPTScheduleChangedGeneric/Supportingwes
network-fulfillmentConsumes the events topic, including CPTScheduleChangedSupportingwes
warehouse-ops-agentHas an MCP client for this service, unusedSupportingwes (publishes no events)
dock-schedulingConsumes only CPTScheduleChanged, to keep its copy of each site's cutoff timesSupportingwms
outbound-shippingConsumes only CPTScheduleChanged, to keep its copy of each site's cutoff timesSupportingwms
facility-layoutSeparate Ways: DestinationLocationRole and SiteId are copied by conventionGenericwms
product-masterOwns the handling vocabulary behind eligibility product attributes; not consumedSupportingwms

facility-layout and process-path-management are the fleet's two Generic contexts. Both exist so that no Core or Supporting context has to own a concern several of them need, and neither calls a sibling.

See also: Bounded Context Canvas, Context Map, Integration.