graph TB
subgraph "Order Fulfillment Core"
OM[Order Management<br/>Context]
I[Inventory<br/>Context]
C[Cartonization<br/>Context]
PC[Product Catalog<br/>Context]
end
subgraph "Process Path"
PP[Process Path<br/>Routing & Orchestration]
SINGLES[Singles Path<br/>Context]
AFE[AFE Path<br/>Context]
BATCH[Batch Flow<br/>Context]
SLAM[SLAM Operations<br/>Context]
end
subgraph "Warehouse Execution"
WP[Wave Planning<br/>Context]
TE[Task Execution<br/>Context]
PE[Pick Execution<br/>Context]
PS[Pack & Ship<br/>Context]
end
subgraph "Physical Operations"
PT[Physical Tracking<br/>Context]
LM[Location Master<br/>Context]
RF[Robotics Fleet<br/>Context]
WES[WES Orchestration<br/>Context]
end
subgraph "Transportation & Logistics"
ST[Shipment Transportation<br/>Context]
YM[Yard Management<br/>Context]
CD[Cross-Docking<br/>Context]
LMD[Last-Mile Delivery<br/>Context]
end
subgraph "Support & Intelligence"
RM[Returns Management<br/>Context]
PA[Predictive Analytics<br/>Context]
WL[Workload Planning<br/>Context]
QC[Quality Compliance<br/>Context]
VAS[Value-Added Services<br/>Context]
end
%% Context Relationships
OM -.->|Shared Kernel| I
OM -->|Downstream| C
OM -->|Downstream| WP
OM -->|Downstream| PP
WP -->|Downstream| PP
PP -->|Downstream| SINGLES
PP -->|Downstream| AFE
PP -->|Downstream| BATCH
SINGLES -->|Downstream| SLAM
AFE -->|Downstream| SLAM
BATCH -->|Downstream| SLAM
PP -.->|Partnership| WES
WP -->|Downstream| TE
TE -->|Downstream| PE
PE -->|Downstream| PS
SLAM -->|Downstream| ST
I -.->|Shared Kernel| PT
PT -.->|Partnership| LM
PT -->|Event Streaming| PP
WES -->|Orchestrator| TE
RF -->|Upstream| TE
RF -.->|Partnership| PP
PS -->|Downstream| ST
ST -.->|Partnership| YM
RM -->|Upstream| OM
PA -->|Published Language| WP
PA -->|Published Language| WL
classDef core fill:#e8f5e9,stroke:#4caf50,stroke-width:3px
classDef execution fill:#e3f2fd,stroke:#2196f3,stroke-width:3px
classDef physical fill:#fff3e0,stroke:#ff9800,stroke-width:3px
classDef transport fill:#f3e5f5,stroke:#9c27b0,stroke-width:3px
classDef support fill:#fce4ec,stroke:#e91e63,stroke-width:3px
classDef processpath fill:#e1f5fe,stroke:#0288d1,stroke-width:3px
class OM,I,C,PC core
class WO,WP,TE,PE,PS execution
class PT,LM,RF,WES physical
class ST,YM,CD,LMD transport
class RM,PA,WL,QC,VAS support
class PP,SINGLES,AFE,BATCH,SLAM processpath
Responsibility: Manages the complete order lifecycle from creation to fulfillment completion
Core Aggregates:
FulfillmentOrder - Root aggregate for order processingOrderLine - Individual items within an orderAllocationResult - Inventory allocation resultsKey Domain Events:
Integration Pattern: Upstream to most services, publishes order lifecycle events
Responsibility: Single source of truth for inventory levels, locations, and movements
Core Aggregates:
InventoryItem - Physical inventory with quantity and locationInventoryMovement - Tracks all inventory transactionsInventoryAdjustment - Manual adjustments and cycle countsKey Domain Events:
Integration Pattern: Shared Kernel with Order Management, Partnership with Physical Tracking
Responsibility: 3D bin-packing optimization for shipping cartons
Core Aggregates:
Carton - Available shipping container definitionsPackingSolution - Calculated optimal packing arrangementKey Domain Events:
Integration Pattern: Downstream from Order Management, provides packing solutions
Responsibility: Master data management for SKUs and product information
Core Aggregates:
Product - Product master dataProductCategory - Product categorizationProductAttributes - Variable product attributesKey Domain Events:
Integration Pattern: Published Language, provides product data to all contexts
Responsibility: Intelligent routing and orchestration of shipments through multiple fulfillment paths (Singles, AFE, Batch/Flow)
Core Aggregates:
ProcessPath - Path configuration, capabilities, constraints, and scoring criteriaPathAssignment - Shipment-to-path assignment lifecycle (PENDING → ASSIGNED → COMPLETED)PathCapacity - Real-time capacity state (NORMAL/CONSTRAINED/CRITICAL) and utilization metricsWorkloadDistribution - Cross-path workload tracking and rebalancingAFEBatch - Batch lifecycle for AFE sorter-based processingSinglesSession - Single-item pick-to-pack workflow trackingPickBatch - Batch picking and put-wall consolidation workflowKey Value Objects:
ShipmentProfile - Dimensions, weight, hazmat class, fragility, sortabilityOrderComposition - Item count, SKU diversity, consolidation requirementsPathConstraints - Maximum dimensions, weight, hazmat restrictionsPathScoringCriteria - Weighted factors (utilization: 40%, buffer: 30%, labor: 20%, affinity: 10%)Key Domain Events:
Integration Pattern: Partnership with WES Orchestration, Downstream to Task Execution, Consumes from Order Management, Wave Planning, Physical Tracking, Robotics Fleet
Responsibility: Direct pick-to-pack workflow for single-item orders (40-50% of volume)
Core Aggregates:
SinglesSession - Single-item order session trackingKey Domain Events:
Integration Pattern: Downstream from Process Path Routing, Upstream to SLAM
Responsibility: AFE sorter-based workflow for multi-item order consolidation (30-35% of volume)
Core Aggregates:
AFEBatch - Batch of orders for AFE processingRebinWall - Rebin wall with consolidation slotsInductStation - Induction station managementSorterLane - Sorter lane controlKey Domain Events:
Integration Pattern: Downstream from Process Path Routing, Partnership with Robotics Fleet, Upstream to SLAM
Responsibility: Batch picking and put-wall consolidation (15-20% of volume)
Core Aggregates:
PickBatch - Batch of orders for pickingPutWall - Put wall with consolidation slotsKey Domain Events:
Integration Pattern: Downstream from Process Path Routing, Upstream to SLAM
Responsibility: Final quality gate - Scan, Label, Apply, Manifest
Core Aggregates:
SLAMSession - SLAM processing sessionManifest - Carrier manifestShippingLabel - Generated shipping labelWeightVerification - Weight check resultsKey Domain Events:
Integration Pattern: Downstream from all path services, Upstream to Transportation
Responsibility: Intelligent grouping of orders into executable waves
Core Aggregates:
Wave - Collection of orders for batch processingWaveStrategy - Rules for wave creationWavePlan - Planned execution sequenceKey Domain Events:
Integration Pattern: Downstream from Warehouse Operations, upstream to Task Execution
Responsibility: Task queue management and worker assignment
Core Aggregates:
WorkTask - Unified task model for all work typesTaskQueue - Priority-based task queuingWorkerAssignment - Task-to-worker allocationKey Domain Events:
Integration Pattern: Central hub for all executable work
Responsibility: Mobile picking operations with path optimization
Core Aggregates:
PickList - Collection of items to pickPickRoute - Optimized picking path (TSP)PickConfirmation - Pick verificationKey Domain Events:
Integration Pattern: Downstream from Task Execution
Responsibility: Packing station operations and shipping label generation
Core Aggregates:
PackingStation - Physical packing locationPackage - Packed shipmentShippingLabel - Carrier shipping labelsKey Domain Events:
Integration Pattern: Downstream from Pick Execution, upstream to Shipment Transportation
Responsibility: License plate tracking and physical asset location
Core Aggregates:
LicensePlate - Unique identifier for physical containersAssetLocation - Current location of assetsMovementHistory - Historical trackingKey Domain Events:
Integration Pattern: Shared Kernel with Inventory, provides physical tracking
Responsibility: Warehouse location configuration and slotting optimization
Core Aggregates:
Location - Physical warehouse locationsLocationType - Location categorizationSlottingStrategy - ABC velocity-based slottingKey Domain Events:
Integration Pattern: Partnership with Physical Tracking
Responsibility: Labor forecasting and workforce planning
Core Aggregates:
WorkloadForecast - Predicted work volumeStaffingPlan - Required staffing levelsShiftSchedule - Worker shift assignmentsKey Domain Events:
Integration Pattern: Consumes analytics from Predictive Analytics
Responsibility: RMA processing and reverse logistics
Core Aggregates:
Return - Return merchandise authorizationReturnInspection - Quality inspection resultsDispositionDecision - Return dispositionKey Domain Events:
Integration Pattern: Upstream to Order Management and Inventory
Responsibility: AMR/AGV orchestration and control
Core Aggregates:
Robot - Individual robot managementRobotMission - Assigned robot tasksFleetCoordination - Multi-robot coordinationChargingSchedule - Battery managementKey Domain Events:
Integration Pattern: Upstream to Task Execution, provides automation
Responsibility: Complex workflow orchestration with saga pattern
Core Aggregates:
WorkflowInstance - Running workflow instanceStepExecution - Individual workflow stepsSagaCoordinator - Distributed transaction managementKey Domain Events:
Integration Pattern: Orchestrator for complex multi-service workflows
Responsibility: ML-based forecasting and predictive insights
Core Aggregates:
Forecast - Predictive forecast resultsPredictionModel - ML model managementAnalyticsJob - Batch analytics processingKey Domain Events:
Integration Pattern: Published Language, provides predictions to multiple contexts
Responsibility: Dock door scheduling and trailer management
Core Aggregates:
YardLocation - Yard and dock locationsTrailer - Trailer trackingDockAppointment - Scheduled dock appointmentsKey Domain Events:
Integration Pattern: Partnership with Shipment Transportation
Responsibility: Flow-through operations without storage
Core Aggregates:
CrossDockOperation - Flow-through coordinationConsolidationPlan - Multi-source consolidationTransferOrder - Direct transfer ordersKey Domain Events:
Integration Pattern: Specialized operations within Warehouse Operations
Responsibility: Final mile delivery route optimization
Core Aggregates:
DeliveryRoute - Optimized delivery routes (VRP)DeliveryStop - Individual delivery locationsProofOfDelivery - Delivery confirmationKey Domain Events:
Integration Pattern: Downstream from Shipment Transportation
Responsibility: Kitting, customization, and special handling
Core Aggregates:
VASOrder - Value-added service requestWorkflowStep - VAS workflow stepsQualityCheckpoint - Quality verificationKey Domain Events:
Integration Pattern: Specialized operations within Warehouse Operations
Responsibility: Quality control and regulatory compliance
Core Aggregates:
InspectionRecord - Quality inspection resultsComplianceRule - Regulatory requirementsDefect - Quality defects trackingKey Domain Events:
Integration Pattern: Cross-cutting concern for quality assurance
Responsibility: Carrier integration and shipment tracking
Core Aggregates:
Shipment - Outbound shipmentCarrier - Carrier configurationTrackingInfo - Real-time trackingKey Domain Events:
Integration Pattern: Downstream from Pack & Ship, integrates with external carriers