Operational Workflows & State Machines

Process flow diagrams for inbound, outbound, and internal movements, plus state transition tables.

Operational Workflows & State Machines

WMS operations are governed by document lifecycles and state transitions.


1. Visual Process Flows

Inbound Flow (Vendor Arrival to Putaway)

sequenceDiagram
    participant Vendor
    participant Gate as Gate Check
    participant Insp as Quality Inspection
    participant Ledger as Stock Ledger
    participant Storage as Storage Bin

    Vendor->>Gate: Arrive with Delivery Manifest
    Gate->>Gate: Gate Pass Approval
    Gate->>Insp: Route to Inspection Bay
    Insp->>Insp: Count & Quality Checks
    alt Verification Approved
        Insp->>Ledger: Issue Goods Received Note (GRN)
        Ledger->>Ledger: Credit Dock / Debit Supplier
        Insp->>Storage: Generate Putaway Instruction
        Storage->>Ledger: Credit Bin / Debit Dock
    else Verification Rejected
        Insp->>Ledger: Issue Quarantine Note
        Ledger->>Ledger: Credit Quarantine / Debit Supplier
    end

Outbound Flow (Order to Customer Delivery)

sequenceDiagram
    participant Sales as Sales Order
    participant Ledger as Stock Ledger
    participant Packing as Packing Station
    participant Ship as Shipping Bay
    participant Customer

    Sales->>Ledger: Request Allocation (Lock ATP)
    Ledger->>Ledger: ATP Decremented / Reserved Incremented
    Ledger->>Packing: Issue Picking List & GIN
    Packing->>Packing: Pick verification & Container Scan
    Packing->>Ship: Deliver container
    Ship->>Customer: Release Carrier (Issue Delivery Note)
    Ledger->>Ledger: Decrement On-Hand & Reserved Balances
    Customer->>Ship: Sign Proof of Delivery (POD)

Internal Transfer Workflow

sequenceDiagram
    participant Source as Source Bin
    participant Transit as Transit Zone (Virtual)
    participant Target as Target Bin
    participant Ledger as Stock Ledger

    Source->>Transit: Release Items (Issue GIN)
    Ledger->>Ledger: Debit Source Bin / Credit Transit Location
    Transit->>Target: Transport and Arrive at Target
    Target->>Ledger: Reconcile Items (Acceptance)
    Ledger->>Ledger: Debit Transit Location / Credit Target Bin

Cycle Counting Discrepancy Workflow

sequenceDiagram
    participant Auditor
    participant Bin as Audited Bin
    participant Zone as Audit Zone (Virtual)
    participant Loss as Scrap/Loss Location (Virtual)
    participant Ledger as Stock Ledger

    Auditor->>Bin: Physical Count Audit
    alt Count Matches Ledger
        Auditor->>Ledger: Log Count Verification
    else Count Discrepancy Found
        Auditor->>Zone: Lock Variance (Issue Adjustment Draft)
        Ledger->>Ledger: Debit Bin / Credit Audit Zone
        Auditor->>Auditor: Manager Approval Workflow
        alt Approval Granted
            Auditor->>Loss: Reconcile Discrepancy
            Ledger->>Ledger: Debit Audit Zone / Credit Scrap/Loss Location
        else Approval Denied
            Auditor->>Bin: Cancel Adjustment (Revert Lock)
            Ledger->>Ledger: Debit Audit Zone / Credit Bin Location
        end
    end

2. State Transition Tables

Document State Transitions

DocumentCurrent StateTrigger / ActionNext StateValidation Invariants
GRNDraftInspection CompleteApprovedChecked quantities must equal receiving count. Serial numbers must be unique.
GRNApprovedPutaway completedClosedItems must be recorded in storage Bins.
GINDraftTransfer DispatchedIn-TransitSource stock must have sufficient ATP.
GINIn-TransitReconciled at TargetClosedQuantities received must match GIN. Differences are booked to virtual loss bin.
DNDraftPicking CompletedReadyAllocated inventory must cover the full document count.
DNReadyDispatched to CarrierShippedOn-hand physical stock is decremented.
DNShippedSigned POD ReturnedDeliveredDelivery is complete, closing the transaction.

Serial Number State Machine

Current StateTrigger / ActionNext StateValidation Invariants
Non-ExistentGRN ApprovedAvailableSerial number must not duplicate an active serial in the database.
AvailableOrder ReservedAllocatedSerial unit must not reside in quarantine or transit.
AllocatedDN ShippedDispatchedSerial must be scanned during outbound packing.
AvailableDamage / ExpiryQuarantinedItem is excluded from picking. ATP decremented.
QuarantinedScrap ReconciledScrappedSerial is retired.
DispatchedRMA ApprovedReturnedSerial status must match original DN history.
ReturnedInspection CompleteAvailableSerial unit must pass quality review check.