SoftwareDRAFT ENTRY
State machine
A behavioral model of the states an entity can occupy and the events or guards that move it between them.
Use this diagram to generateUSE WHEN
Lifecycle rules and invalid transitions matter.
AVOID WHEN
You are documenting a one-off workflow without durable states.
VISUAL GRAMMAR
01states02transitions03events04guards05terminal state
SEMANTIC RULES
- Use stable nouns for states.
- Label transitions with events.
- Make terminal and error states explicit.
- Do not confuse actions with states.
QUESTIONS IT ANSWERS
- What can this become?
- Which event changes its state?
DRAFT MACHINE CONTRACT
id: state status: draft family: software reading_task: See an object's valid states and transitions. grammar: - states - transitions - events - guards - terminal_state checks: - use_stable_nouns_for_states - label_transitions_with_events - make_terminal_and_error_states_explicit - do_not_confuse_actions_with_states