State transition diagrams

Description

Models an interface as states and the user or system events that move between them, making modes, dead ends and missing transitions visible and checkable.

A state transition diagram represents each distinct interface state as a node and each event (tap, timeout, error, sensor input) as a labelled edge. Harel's statecharts extend this with hierarchy, concurrency and history, making large systems tractable. The rigorous version is complete: every state has a defined response to every event, including error and timeout events. Analysis then reveals hidden modes, states with no exit, events with no handler and inconsistent responses to the same event in different states. Modern UX uses flow diagrams that look similar but usually show happy paths only, which is why the method is vestigial. The tabular form, a state-event matrix, is the best completeness check.

Attributes

Loss type
Vestigial
Stage
Design
Effort
Days

Steps

  1. Enumerate states, including transient and error states, from the design, code or observation.
  2. Enumerate events: user actions, system responses, timeouts, errors and external inputs.
  3. Build a state-event matrix and fill every cell with the resulting state or an explicit 'ignored'; empty cells are specification gaps.
  4. Draw the diagram, using statechart hierarchy for nested modes and concurrent regions for parallel subsystems.
  5. Check for states without exits, unreachable states, mode ambiguity (same display, different states) and inconsistent responses to the same event.
  6. Review with engineers and domain experts and convert into test cases for every transition.

Sources

  • Weyers, B., Bowen, J., Dix, A. & Palanque, P. (eds), The Handbook of Formal Methods in Human-Computer Interaction (2017)
  • Handbook of Formal Methods in HCI
  • The Inquiry Series, Ch 5 — State, Transition & the Logic of Interaction
  • Hofstadter, D., Gödel, Escher, Bach: An Eternal Golden Braid (1979)
  • Gödel Escher Bach (Hofstadter)

Also known as

  • State machines
  • Statecharts
  • Finite-state interaction models
  • State transition networks

Categories

  • User Research
  • Task Analysis & Cognitive Modelling