System Design Atlas

International humanitarian aid logistics

05 / 10Worked example

Data and states

In transit is not a completed outcome. Which conditions ensure this outcome?

Receipt records may report partial quantities.

Starting point Replay uses the same identifier and payload.

Assumptions for the example case

A fictional shipment of 100 boxes of hygiene supplies between a warehouse and a distribution point. Local inventory ownership remains clear; offline devices document assigned shipments. All quantities, thresholds and operational targets in this design are illustrative assumptions.

Shipment and disposition

Shipment, allocation and final disposition

Planned100 available
Geplant → Zugewiesenallocate: reserve stock atomically
Assigned100 reserved for S-49
Zugewiesen → Storniertcancel: only before shipment
CancelledRelease allocation once
Zugewiesen → Unterwegsdispatch: transport handover
In transitOriginating stock remains dispatched
Unterwegs → Abgeschlossen100 undamaged
Completedterminal
Unterwegs → In Klärung98/2 to S-49
Under reviewDamage open
In Klärung → Geklärt abgeschlossenRemaining goods accounted for
Resolved and completedAll 100 accounted for

Assignment, shipping and cancellation remain separate commands; reception and damage always reference S-49.

Assigned → In transit → Completed or Under review → Resolved and completed; cancellation is allowed only before dispatch.

State transitions and completion

Starting pointCondition and effectSubsequent state
PlannedStock allocated atomicallyAssigned
AssignedCancelled before dispatchCancelled
AssignedTransport handover confirmedIn transit
In transitFull undamaged receiptCompleted
In transitPartial quantity or damage reportedUnder review
Under reviewRemaining goods accounted for by evidence of return or disposalResolved and completed

Planned

Condition and effect
Stock allocated atomically
Subsequent state
Assigned

Assigned

Condition and effect
Cancelled before dispatch
Subsequent state
Cancelled

Assigned

Condition and effect
Transport handover confirmed
Subsequent state
In transit

In transit

Condition and effect
Full undamaged receipt
Subsequent state
Completed

In transit

Condition and effect
Partial quantity or damage reported
Subsequent state
Under review

Under review

Condition and effect
Remaining goods accounted for by evidence of return or disposal
Subsequent state
Resolved and completed

In transit is not a completed outcome.

In transit is not a completed outcome.

The remaining goods' whereabouts stay unresolved until evidenced.

Receipt records may report partial quantities.

100 accepted undamaged → Completed. 98 accepted + 2 damaged → Under review → evidence for 2 → Resolved and completed.

Alternative considered
Closing on a timer hides missing goods.
Trade-off
Coordination needs a work list.
Reassess
Frequent losses require process review.

Try it yourself

Draw the normal completion path and the path for damaged goods.

A hint for your attempt

Receipt records may report partial quantities.

Compare with a possible solution
Normal
100 accepted undamaged → Completed.
Damage
98 accepted + 2 damaged → Under review → evidence for 2 → Resolved and completed.

Apply to your project

How does “In transit is not a completed outcome” apply to your own project?

Step 6: The offline buffer is not a second inventory. What conditions ensure the result?