Marcus Andrey Study
Ler em português Library

Complex products · Step 2 · 7 min read

Long flows and object states

In work tools, the important flows last days and pass through several people: a work order can take a week and five roles to go from draft to closed. How to draw an object's states and the moves between them before drawing screens, who may make each move, how to show the state on every screen, and how to design the waiting.

The longest flow in Gale is the life of a work order. It starts as a draft on a planner's screen, waits for parts, goes out to a crew, stops for wind, gets finished at the top of a turbine, is checked by a supervisor and closed. That takes days, and five different people move it along. No single screen shows that flow. Draw it first, as states and moves, and the screens get much easier to design.

What you'll be able to do after reading:

  • Draw an object's states and the moves between them
  • Write down who may make each move, and when
  • Show the current state, its reason and the next step on every screen
  • Design the waiting states, not only the working ones

1. States and transitions

A state is where an object is in its life at a given moment: a work order can be Planned, In progress or On hold. A transition is a move from one state to another: In progress to Done. Each transition has someone who makes it (a role, or the system), and often a condition: the work order can't move to In progress until a valid permit-to-work exists.

Drawing states and transitions is called a state diagram. Developers use the same kind of drawing, so it's a shared language with them. For designers, it answers three questions no screen does on its own:

  • What can happen to this object, in what order?
  • Who can make each thing happen?
  • Where can it get stuck?

2. Draw the states before the screens

DraftPlannedScheduledIn progressOn holdwaitsresumesDoneVerifiedonly a supervisorClosedby whom?Cancelledfrom which states? DraftPlannedScheduledIn progressDoneVerifiedonly a supervisorClosedby whom?On holdCancelledfrom which states?
StateMeansMoves on when
DraftThe planner is writing itThe planner plans it
PlannedWork, parts and timing are definedThe planner schedules it
ScheduledIt has a date; the supervisor assigns a crewThe crew starts, once a safety officer has released the permit
In progressThe crew is working at the turbineThe technician marks it done, or it goes on hold
On holdWaiting for parts, weather or a permitThe reason clears, and work goes back to In progress
DoneWork finished at the turbine, not yet checkedA supervisor verifies it (only a supervisor can)
VerifiedChecked by a supervisorNot decided yet: who closes it?
ClosedFinished, checked and recordedIt doesn't; this is the end
CancelledWon't be doneNot decided yet: from which states?
A work order's life in Gale. On hold, highlighted, is where work gets stuck, so it needs as much design as the working states. The question marks are rules nobody has decided yet; drawing the states is how they were found.Gale is a fictional product. Diagram: Marcus Andrey, CC BY 4.0.

These are Gale's work order states. The main path runs from Draft to Closed. On hold is where a work order goes when the work can't continue: waiting for parts, weather or a permit. Cancelled ends a work order that won't be done.

Two rules sit in the transitions, not in any screen:

  • Only a supervisor can verify. The technician marks the work Done; a different person checks it. Nobody verifies their own work order: at small sites a supervisor sometimes leads the crew, and then another supervisor verifies. The button to verify must exist only for supervisors (Step 5 covers how in Permissions people understand).
  • Only a safety officer can release a permit. The permit-to-work is an object of its own, with its own states, and the work order depends on it.

Drawing also shows gaps. Gale's spec lists Cancelled but doesn't yet say from which states a work order can be cancelled. Can a crew cancel at the turbine? Can a Done order go back to In progress if the supervisor finds a problem? Who closes a verified one? A screen designed before these answers exist will answer them by accident. Mark open questions on the diagram and take them to the people who own the process.


3. Show the state everywhere

People open a work order to answer "where is it, and what happens next?". Every place that shows the object should answer that:

WO-2026-018734 · Replace pitch sensor

Turbine CA-07-T14 · Site 7 · Priority high

On hold

Waiting for parts: pitch sensor PS-2210 is not in stock at the nearest stock location.

On hold since 23 Nov, 08:40 · 2 days

Next: the warehouse reserves the part, then the crew can go back to work.

Reserve partSeen by a warehouse clerk

  1. The state in words, with a symbol, not only a colour
  2. The reason, chosen from a short list
  3. Since when, so a forgotten wait stands out
  4. The next move and who makes it, with the button for the person who can
A work order header that answers "where is it, and what happens next?". The state, highlighted, uses a word and a symbol; the next three lines give the reason, the time and the next move.Gale is a fictional product. Diagram: Marcus Andrey, CC BY 4.0.
  • The state, in words. "On hold", not a coloured dot. WCAG says colour must not be "the only visual means of conveying information" (W3C, Understanding 1.4.1, Use of Color). IBM's Carbon says colour "must be paired with text or other visual cues", and that "status indicators should rely on at least two of the following elements: color, shape, or symbol" (Carbon, Status indicators).
  • The reason, for waiting states: on hold because the part isn't in stock.
  • Since when, so people can tell a normal wait from a forgotten one.
  • The next move and who makes it: "Waiting for the warehouse to reserve part PS-2210". If the person looking can make the move, give them the button right there.

Use the same state names, in the same order, on Console, Field and Ops, and in the glossary (The domain's words and a glossary).


4. Design the waiting

A work order can spend more of its life waiting than being worked on. Waiting states are where things get lost, so they need as much design as the working ones:

  • Every waiting state has a reason, chosen from a short list (parts, weather, permit), not a free-text note. A list can be filtered and counted; a note can't.
  • Waiting should end by itself when it can. When the part arrives at the stock location, Gale can tell the planner straight away, instead of waiting for someone to check. Weather is the same: with a wind limit for climbing of 12 m/s (Gale's fictional policy), the forecast can tell the planner when a weather window opens.
  • Long waits should be visible in lists. A supervisor's backlog should let them sort by "on hold the longest", so a job doesn't sit for three weeks unseen.

5. Long tasks for one person

Some flows are long for a single person: setting up a new site, with its turbines, crews and stock locations, can take an admin several sittings. GOV.UK has a pattern for this, complete multiple tasks: a list of the tasks with a status next to each. It's meant "for longer transactions involving multiple tasks", that people may finish over several sessions, and GOV.UK adds: "Try to simplify the transaction before you use a complete multiple tasks page" (GOV.UK Design System, Complete multiple tasks).

Its statuses are a good small model of states for one person's work: Not yet started, In progress, Completed, Cannot start yet and There is a problem. Notice Cannot start yet: it tells the person a task is blocked before they try it. Saving drafts so nothing is lost between sittings is covered in Defaults, drafts and autosave.


6. Common mistakes

  • Designing the screens of a flow without ever drawing its states, so each screen invents its own.
  • Showing the state only as a colour.
  • Treating "On hold" as one state with a free-text note, so nobody can count why work is stuck.
  • Letting the same person do and verify the work because the button was there.
  • Leaving "what happens if…" questions for developers to answer in code.

7. Vocabulary

Term Meaning
State Where an object is in its life at a moment (Planned, On hold, Done)
Transition A move from one state to another, made by a role or by the system
Condition What must be true before a transition is allowed (a valid permit)
State diagram A drawing of an object's states and the transitions between them
Waiting state A state where nobody is working on the object, such as On hold
Permit-to-work The record that says it's safe to work on a turbine; only a safety officer releases it
Complete multiple tasks GOV.UK's pattern for a long job split into tasks, each with a status

8. Try it (no tools needed)

Pick something with a life that lasts days: a library book loan, a phone left for repair, a job application.

  1. Write its states on small pieces of paper or in boxes on a page, one state per box, in the order they usually happen.
  2. Draw an arrow for each transition. On each arrow, write who makes the move (a role or "system").
  3. Add at least one waiting state. Write the reasons someone could be waiting, as a short list.
  4. Mark with a question mark every move you aren't sure is allowed (can it go back? can it be cancelled here?).
  5. Write the one line a screen should show for the waiting state: state, reason, since when, next move.

How to know it's good: every arrow has a who, the waiting state has a list of reasons (not "other"), and you have at least one question mark you could take to someone who knows the process.

Reflection questions: In which state does your object spend the most time? Does anyone see it while it waits?


9. If you already practise

  • Keep the state diagram in the same place as the design and the code, and review it when a new state or role is proposed.
  • Ask developers for the state values in the database. They're often a longer list than anyone on the design side knew about.
  • Count time spent in each state from the logs. Long waiting states are where small design changes save the most days.

Checklist

Learn more

Books, courses and videos to go deeper

  • Domain-Driven DesignEric EvansBook · Addison-Wesley, 2003 · on modelling the life of domain objects

Objects before screens · The domain's words and a glossary · Interface states: empty, loading, error, success · States and edge cases · Background jobs, queues and notifications · Audit trails and history

Saved only on this device.

↑ ↓ to move · Enter to open · Esc to close