State machine (order lifecycle)
Stadium states with arrow transitions labelled by events.
Rendering…
Make it your own.
{
"nodes": [
{ "id":"st","type":"ellipse","label":"●","x":40,"y":160,"fill":"#0f172a","stroke":"#0f172a" },
{ "id":"cr","type":"stadium","label":"Created","x":160,"y":160,"fill":"#dbeafe","stroke":"#2563eb" },
{ "id":"pd","type":"stadium","label":"Paid","x":380,"y":160,"fill":"#dbeafe","stroke":"#2563eb","motion":"pulse" },
{ "id":"sh","type":"stadium","label":"Shipped","x":600,"y":160,"fill":"#fef3c7","stroke":"#a16207" },
{ "id":"dl","type":"stadium","label":"Delivered","x":820,"y":160,"fill":"#dcfce7","stroke":"#15803d" },
{ "id":"rf","type":"stadium","label":"Refunded","x":600,"y":340,"fill":"#fee2e2","stroke":"#b91c1c" },
{ "id":"cn","type":"stadium","label":"Cancelled","x":380,"y":340,"fill":"#e2e8f0","stroke":"#475569" },
{ "id":"en","type":"ellipse","label":"◉","x":1020,"y":160,"fill":"#0f172a","stroke":"#0f172a" }
],
"edges": [
{ "id":"e1","source":"st","target":"cr" },
{ "id":"e2","source":"cr","target":"pd","label":"payment.captured" },
{ "id":"e3","source":"cr","target":"cn","label":"cancel" },
{ "id":"e4","source":"pd","target":"sh","label":"shipped" },
{ "id":"e5","source":"sh","target":"dl","label":"delivery.confirmed" },
{ "id":"e6","source":"dl","target":"en" },
{ "id":"e7","source":"pd","target":"rf","label":"refund" },
{ "id":"e8","source":"sh","target":"rf","label":"refund" },
{ "id":"e9","source":"rf","target":"en" }
]
}