PakLog Bounded Contexts - Complete Overview

Strategic Design: Context Map

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

Bounded Context Details

1. Order Management Context

Responsibility: Manages the complete order lifecycle from creation to fulfillment completion

Core Aggregates:

Key Domain Events:

Integration Pattern: Upstream to most services, publishes order lifecycle events


2. Inventory Context

Responsibility: Single source of truth for inventory levels, locations, and movements

Core Aggregates:

Key Domain Events:

Integration Pattern: Shared Kernel with Order Management, Partnership with Physical Tracking


3. Cartonization Context

Responsibility: 3D bin-packing optimization for shipping cartons

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Order Management, provides packing solutions


4. Product Catalog Context

Responsibility: Master data management for SKUs and product information

Core Aggregates:

Key Domain Events:

Integration Pattern: Published Language, provides product data to all contexts


5. Process Path Context

Responsibility: Intelligent routing and orchestration of shipments through multiple fulfillment paths (Singles, AFE, Batch/Flow)

Core Aggregates:

Key Value Objects:

Key Domain Events:

Integration Pattern: Partnership with WES Orchestration, Downstream to Task Execution, Consumes from Order Management, Wave Planning, Physical Tracking, Robotics Fleet


5.1 Singles Path Context

Responsibility: Direct pick-to-pack workflow for single-item orders (40-50% of volume)

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Process Path Routing, Upstream to SLAM


5.2 AFE Path Context

Responsibility: AFE sorter-based workflow for multi-item order consolidation (30-35% of volume)

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Process Path Routing, Partnership with Robotics Fleet, Upstream to SLAM


5.3 Batch Flow Path Context

Responsibility: Batch picking and put-wall consolidation (15-20% of volume)

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Process Path Routing, Upstream to SLAM


5.4 SLAM Operations Context

Responsibility: Final quality gate - Scan, Label, Apply, Manifest

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from all path services, Upstream to Transportation


6. Wave Planning Context

Responsibility: Intelligent grouping of orders into executable waves

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Warehouse Operations, upstream to Task Execution


7. Task Execution Context

Responsibility: Task queue management and worker assignment

Core Aggregates:

Key Domain Events:

Integration Pattern: Central hub for all executable work


8. Pick Execution Context

Responsibility: Mobile picking operations with path optimization

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Task Execution


9. Pack & Ship Context

Responsibility: Packing station operations and shipping label generation

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Pick Execution, upstream to Shipment Transportation


10. Physical Tracking Context

Responsibility: License plate tracking and physical asset location

Core Aggregates:

Key Domain Events:

Integration Pattern: Shared Kernel with Inventory, provides physical tracking


11. Location Master Context

Responsibility: Warehouse location configuration and slotting optimization

Core Aggregates:

Key Domain Events:

Integration Pattern: Partnership with Physical Tracking


12. Workload Planning Context

Responsibility: Labor forecasting and workforce planning

Core Aggregates:

Key Domain Events:

Integration Pattern: Consumes analytics from Predictive Analytics


13. Returns Management Context

Responsibility: RMA processing and reverse logistics

Core Aggregates:

Key Domain Events:

Integration Pattern: Upstream to Order Management and Inventory


14. Robotics Fleet Management Context

Responsibility: AMR/AGV orchestration and control

Core Aggregates:

Key Domain Events:

Integration Pattern: Upstream to Task Execution, provides automation


15. WES Orchestration Engine Context

Responsibility: Complex workflow orchestration with saga pattern

Core Aggregates:

Key Domain Events:

Integration Pattern: Orchestrator for complex multi-service workflows


16. Predictive Analytics Platform Context

Responsibility: ML-based forecasting and predictive insights

Core Aggregates:

Key Domain Events:

Integration Pattern: Published Language, provides predictions to multiple contexts


17. Yard Management Context

Responsibility: Dock door scheduling and trailer management

Core Aggregates:

Key Domain Events:

Integration Pattern: Partnership with Shipment Transportation


18. Cross-Docking Context

Responsibility: Flow-through operations without storage

Core Aggregates:

Key Domain Events:

Integration Pattern: Specialized operations within Warehouse Operations


19. Last-Mile Delivery Context

Responsibility: Final mile delivery route optimization

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Shipment Transportation


20. Value-Added Services Context

Responsibility: Kitting, customization, and special handling

Core Aggregates:

Key Domain Events:

Integration Pattern: Specialized operations within Warehouse Operations


21. Quality Compliance Context

Responsibility: Quality control and regulatory compliance

Core Aggregates:

Key Domain Events:

Integration Pattern: Cross-cutting concern for quality assurance


22. Shipment Transportation Context

Responsibility: Carrier integration and shipment tracking

Core Aggregates:

Key Domain Events:

Integration Pattern: Downstream from Pack & Ship, integrates with external carriers

Context Integration Patterns

Shared Kernel

Customer-Supplier

Partnership

Conformist

Anti-Corruption Layer

Published Language

Ubiquitous Language

Core Terms