Process Path Context Map

Overview

This document provides a visual representation of how the Process Path bounded context relates to all other domains in the Paklog fulfillment platform.


Context Map Diagram

flowchart TB
    subgraph Upstream["UPSTREAM CONTEXTS (Provide data TO Process Path)"]
        OM[Order Management<br/>πŸ“‹ Published Language]
        INV[Inventory Service<br/>πŸ“¦ Conformist]
        WAVE[Wave Planning<br/>πŸ“‹ Published Language]
        WL[Workload Planning<br/>πŸ“¦ Conformist]
    end

    subgraph ProcessPath["PROCESS PATH"]
        direction TB
        PP_CORE[Path Selection & Routing<br/>Workload Orchestration<br/>Singles/AFE/Batch Ops<br/>Buffer State Management<br/>SLA Prioritization]
    end

    subgraph Downstream["DOWNSTREAM CONTEXTS (Consume data FROM Process Path)"]
        TASK[Task Execution<br/>πŸ”½ Customer-Supplier]
        PICK[Pick Execution<br/>🀝 Partnership]
        PACK[Pack & Ship<br/>🌐 Open Host Service]
        SHIP[Shipment Transportation<br/>πŸ”½ Customer-Supplier]
    end

    subgraph Partners["PARTNERSHIP CONTEXTS (Bidirectional)"]
        WES[WES Orchestration<br/>🀝 Partnership]
        ROBOT[Robotics Fleet<br/>🀝 Partnership]
        TRACK[Physical Tracking<br/>πŸ“‘ Event Streaming]
        LOC[Location Master<br/>πŸ“¦ Conformist]
    end

    OM -->|OrderReleasedEvent| PP_CORE
    INV -->|InventoryAllocatedEvent| PP_CORE
    WAVE -->|WaveReleasedEvent| PP_CORE
    WL -->|CapacityForecastEvent| PP_CORE

    PP_CORE -->|ShipmentRoutedEvent| TASK
    PP_CORE -->|PathCapacityEvent| PICK
    PP_CORE -->|SLAPriorityEvent| PACK
    PP_CORE -->|SLAMCompletedEvent| SHIP

    PP_CORE <-->|WorkRelease/Capacity| WES
    PP_CORE <-->|RobotTasks/PodDelivery| ROBOT
    TRACK -->|LocationUpdates| PP_CORE
    LOC -->|WarehouseTopology| PP_CORE

Integration Pattern Legend

Symbol Pattern Description
πŸ“‹ Published Language Upstream owns contract, we consume their model
πŸ“¦ Conformist We adapt to upstream’s model without negotiation
πŸ”½ Customer-Supplier We provide services, downstream consumes
🀝 Partnership Bidirectional collaboration, shared ownership
🌐 Open Host Service Standardized interface for multiple consumers
πŸ“‘ Event Streaming Continuous flow of operational events

Relationship Details

Upstream Relationships (Data flows INTO Process Path)

Context Pattern Events Consumed Purpose
Order Management Published Language OrderReleasedToWarehouseEvent Receive orders with SLA requirements
Inventory Service Conformist InventoryAllocatedEvent Get item properties and locations
Wave Planning Service Published Language WaveReleasedEvent Receive wave composition for batch processing
Workload Planning Service Conformist CapacityForecastUpdatedEvent Receive capacity and labor forecasts
Location Master Service Conformist REST API (cached) Query warehouse topology and zones

Downstream Relationships (Data flows FROM Process Path)

Context Pattern Events Published Purpose
Task Execution Service Customer-Supplier ShipmentRoutedToPathEvent Trigger task creation for workers
Pick Execution Service Partnership PathCapacityChangedEvent Coordinate pick flow and throughput
Pack & Ship Service Open Host Service SLAPriorityEscalatedEvent Signal pack priority and SLA status
Shipment Transportation Customer-Supplier SLAM completion events Trigger shipping label and manifest

Partnership Relationships (Bidirectional)

Context Pattern Events Exchanged Purpose
WES Orchestration Engine Partnership Work release, capacity signals Coordinate work distribution and load balancing
Robotics Fleet Management Partnership Robot task assignment/completion Coordinate robot pod delivery
Physical Tracking Service Event Streaming Location updates Track shipment progress through paths

Data Flow Sequence

sequenceDiagram
    participant OM as Order Management
    participant INV as Inventory Service
    participant PP as Process Path
    participant TASK as Task Execution
    participant PICK as Pick Execution
    participant PACK as Pack & Ship
    participant SHIP as Transportation

    rect rgb(240, 248, 255)
        Note over OM,INV: Input Events
        OM->>PP: OrderReleasedToWarehouseEvent
        Note right of OM: orderId, shipmentId,<br/>SLA, lineItems
        INV->>PP: InventoryAllocatedEvent
        Note right of INV: SKU locations,<br/>item properties
    end

    rect rgb(255, 250, 240)
        Note over PP: Routing Decision
        PP->>PP: 1. Analyze shipment properties
        PP->>PP: 2. Evaluate order composition
        PP->>PP: 3. Check path capacity
        PP->>PP: 4. Calculate routing score
        PP->>PP: 5. Assign to optimal path
    end

    rect rgb(240, 255, 240)
        Note over TASK,SHIP: Output Events
        PP->>TASK: ShipmentRoutedToPathEvent
        PP->>PICK: PathCapacityChangedEvent
        PP->>PACK: SLAPriorityEscalatedEvent
        PACK->>SHIP: SLAMCompletedEvent
        Note right of SHIP: Label, manifest,<br/>carrier handoff
    end

Anti-Corruption Layers

Process Path β†’ External Systems

Process Path maintains ACL boundaries to translate between internal and external models:

flowchart TB
    subgraph Core["PROCESS PATH CORE DOMAIN"]
        SR[ShipmentRoute<br/>Aggregate]
        PC[PathCapacity<br/>Aggregate]
        BS[BufferState<br/>Aggregate]
    end

    subgraph ACL["ANTI-CORRUPTION LAYERS"]
        ACL_ORDER[Order ACL<br/>OrderReleased β†’ Shipment]
        ACL_INV[Inventory ACL<br/>Allocation β†’ ItemProps]
        ACL_WES[WES ACL<br/>WorkRelease β†’ Capacity]
    end

    subgraph External["EXTERNAL SYSTEMS"]
        EXT_OM[External Order<br/>Management]
        EXT_INV[External Inventory<br/>Service]
        EXT_WES[External WES<br/>Orchestration]
    end

    SR --> ACL_ORDER
    PC --> ACL_INV
    BS --> ACL_WES

    ACL_ORDER --> EXT_OM
    ACL_INV --> EXT_INV
    ACL_WES --> EXT_WES

Shared Kernel

Process Path shares kernel concepts with closely related contexts:

Shared Concept Contexts Definition
ShipmentId Order Mgmt, Inventory, Process Path, Transportation Unique shipment identifier
SKU Inventory, Process Path, Pick Execution Product identifier
WarehouseLocation Location Master, Inventory, Process Path Hierarchical location
SLAPriority Order Mgmt, Process Path, Pack & Ship GREEN/YELLOW/RED classification
ProcessPathType Process Path, Task Execution, Pick Execution SINGLES/AFE/BATCH_FLOW

Context Ownership

Context Domain Owner Tech Lead
Process Path Outbound Operations Platform Architecture
Order Management Commerce Platform Order Platform Team
Inventory Service Supply Chain Inventory Platform Team
WES Orchestration Warehouse Operations WES Team
Task Execution Labor Management Task Platform Team
Pick Execution Picking Operations Pick Platform Team
Pack & Ship Packing Operations Pack Platform Team
Transportation Shipping Ops Transportation Team
Robotics Fleet Automation Robotics Team
Physical Tracking IoT Platform Tracking Team
Location Master Warehouse Config Location Team
Wave Planning Planning Ops Wave Team
Workload Planning Labor Planning Workforce Team