State machine template

Every state an order can be in and the events that move it — the source of truth for status logic and tests.

Use this templateFree, opens in your browser. No sign-up.

State machine template
start
Pending
Paid
Shipped
Delivered
Cancelled
Returned
Refunded
Rules
• Only Paid orders can ship
• Cancelled and Refunded are final
• Every transition writes an audit event
Order state machine
checkout
payment ok
timeout 30 min
label printed
cancel before ship
carrier scan
return ≤ 30 days
item received
The state machine template as it opens in Kelvo: 8 boxes, 1 sticky note and 8 links.

What's on the board

  • Paid
  • start
  • Pending
  • Shipped
  • Delivered
  • Returned
  • Refunded
  • Cancelled
  • Rules • Only Paid orders can ship • Cancelled and Refunded are final • Every…

How to use this template

  1. Click Use this template. It opens in the Kelvo app as a new board, saved in your browser.
  2. Double-click any box to change its text. Replace the examples with your own content.
  3. Paste a table. Paste comma- or tab-separated text and it becomes a table. Tab moves to the next cell and adds rows as you go.
  4. Paste code as code. Paste a snippet and it becomes a code block with syntax colouring; Tab indents inside it.
  5. Link by dragging. Hover a box and drag one of its dots onto another box. The whole box is the target, and links stay attached when you move things.

Good for

  • state machine
  • states
  • lifecycle
  • engineer
  • design
  • Designing a schema or an API before writing it
  • Explaining a tricky flow in a code review or design doc
  • Agreeing on team conventions such as branching and reviews

Related templates

  • UML class diagram template previewUML class diagram

    Classes with fields and methods, associations with multiplicity, and an interface with two implementations.

  • ER diagram (database schema) template previewER diagram (database schema)

    Entities as tables with columns, types and keys, joined by one-to-many relationships — sketch a schema before the migration.

  • Sequence diagram (request flow) template previewSequence diagram (request flow)

    Numbered steps across Client, API gateway, service, database and a third party — how one checkout request really travels.

  • Git branching strategy template previewGit branching strategy

    Trunk-based development with short-lived feature branches, pull requests, release branches and a cherry-picked hotfix.

  • Code review checklist template previewCode review checklist

    What to look for in a pull request, from correctness to security, so reviews are fast and consistent.

  • Email nurture sequence template previewEmail nurture sequence

    A trial nurture flow with timed emails, an activation check and different paths for engaged and quiet users.

All software engineering diagram templates · All templates

Use the state machine template