Opening the shared document…
Diagram playground
Write a diagram as text and it renders here as you type. Canvas editing for six of ten notations. Nothing leaves your browser. Syntax reference ·
1
archlab 1.0 lifecycle
2
title "An order, from checkout to the doormat"
3
description "One order, the states it passes through, and the two ways it can leave the track"
4
5
@lifecycle
6
subject "Order"
7
desc "One customer order. Everything below is somewhere this one thing can BE, never something somebody does to it."
8
state placed "Placed"
9
desc "Checkout finished. Nothing has been charged and no stock is held."
10
exit "Cancelled" ends
11
when "the customer changes their mind before paying, or the basket expires"
12
desc "The commonest way an order leaves, and the cheapest: nothing has moved yet."
13
state paid "Paid"
14
desc "Payment captured, stock reserved. From here a departure costs somebody something."
15
exit "Refunded" ends
16
when "the payment is disputed, or the customer cancels before anything is picked"
17
state packed "Packed"
18
desc "Picked, boxed and labelled, waiting on the carrier."
19
state shipped "Shipped"
20
exit "Returned" rejoins packed
21
when "the parcel comes back unopened — refused at the door, or nobody in after three attempts"
22
desc "Back to Packed rather than to Paid: the stock is intact and the box needs only a new label."
23
state delivered "Delivered" ends
24
desc "Signed for, or left where the customer asked. The order stops here."
Tab indents · Esc then Tab leaves the editor · syntax reference
Drawn from the text