State machine — order lifecycle
Standard ecommerce order state diagram.
What this template contains
- Source
- 13 lines
Make it your own.
title "Order lifecycle"
state Idle
state Pending
state Paid
state Shipped
state Delivered final
state Cancelled final
initial Idle
transition Idle -> Pending on "place_order"
transition Pending -> Paid on "payment_received"
transition Pending -> Cancelled on "timeout"
transition Paid -> Shipped on "fulfill"
transition Shipped -> Delivered on "delivered"