Order lifecycle
TemplatesState
Every state an order can be in and the events that move it, including an approval choice and a parallel fulfilment step.
What is inside
- event [guard] / action labels
- Choice, fork and join
- Composite state
Use this template
Opens in the playground, no account needed. Sign up to save it.
Show the Inkline text
diagram state "Order lifecycle"
start s
state draft "Draft"
state review "In review"
choice ok "Approved?"
state paid "Paid"
state cancelled "Cancelled"
end done
composite fulfilment "Fulfilment" {
state picking "Picking"
fork split
state packing "Packing"
state invoice "Invoicing"
join merge
state shipped "Shipped"
picking -> split
split -> packing
split -> invoice
packing -> merge
invoice -> merge
merge -> shipped : dispatched / notify customer
}
s -> draft
draft -> draft : edit / save draft
draft -> review : submit [items > 0] / notify reviewer
review -> ok
ok -> paid : [approved] / charge card
ok -> draft : [rejected]
review -> cancelled : cancel
paid -> fulfilment
fulfilment -> done
cancelled -> done