State machine — order lifecycle
Standard ecommerce order state diagram.
View example and source Edit in StudioNative finite state machines, and the only engine here that decides whether the machine is one. A state machine's defects are facts about reachability and determinism, and neither has pixels: two arrows leaving a state on the same event with nothing to tell them apart is a machine and a coin toss, and it draws as two perfectly ordinary arrows. The engine reports nondeterministic branching, states nothing can reach, non-final states with no way out, a machine that can never terminate, and transitions naming states that were never declared — which every tool that draws what it is handed simply omits from the figure. Every arrow the document writes is drawn, and none is drawn through a box.

Most users come to State machine (FSM) from XState visualizer or UML state diagram tools. flowss runs this engine in the browser — no install, shareable via URL, exportable to PNG / SVG / PDF / source.
state Idle
state Paid final
initial Idle
transition Idle -> Paid on "pay"Paste this in the Studio code pane to see State machine (FSM) render live. The full grammar is at the upstream-docs link above.
Standard ecommerce order state diagram.
View example and source Edit in StudioSimplified TCP connection state machine.
View example and source Edit in StudioThree-phase traffic-light state cycle.
View example and source Edit in StudioSession auth state machine.
View example and source Edit in StudioEditorial doc state machine.
View example and source Edit in StudioThe one to copy. Every state is reachable from the declared initial state, every transition names states that exist, every fork carries a guard that distinguishes it, every non-final state has a way out, and a run can reach a final state. Retries and cancellations are ordinary cycles and the engine says nothing about them, because a loop is not a defect. Reports clean, and every one of the ten checks says what it covered.
View example and source Edit in Studiostatemachine · ← Browse all engines · Quick-start guide