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
| Document | Current State | Trigger / Action | Next State | Validation Invariants |
|---|---|---|---|---|
| GRN | Draft | Inspection Complete | Approved | Checked quantities must equal receiving count. Serial numbers must be unique. |
| GRN | Approved | Putaway completed | Closed | Items must be recorded in storage Bins. |
| GIN | Draft | Transfer Dispatched | In-Transit | Source stock must have sufficient ATP. |
| GIN | In-Transit | Reconciled at Target | Closed | Quantities received must match GIN. Differences are booked to virtual loss bin. |
| DN | Draft | Picking Completed | Ready | Allocated inventory must cover the full document count. |
| DN | Ready | Dispatched to Carrier | Shipped | On-hand physical stock is decremented. |
| DN | Shipped | Signed POD Returned | Delivered | Delivery is complete, closing the transaction. |
Serial Number State Machine
| Current State | Trigger / Action | Next State | Validation Invariants |
|---|---|---|---|
Non-Existent | GRN Approved | Available | Serial number must not duplicate an active serial in the database. |
Available | Order Reserved | Allocated | Serial unit must not reside in quarantine or transit. |
Allocated | DN Shipped | Dispatched | Serial must be scanned during outbound packing. |
Available | Damage / Expiry | Quarantined | Item is excluded from picking. ATP decremented. |
Quarantined | Scrap Reconciled | Scrapped | Serial is retired. |
Dispatched | RMA Approved | Returned | Serial status must match original DN history. |
Returned | Inspection Complete | Available | Serial unit must pass quality review check. |