State Modelling (State Diagrams and State Tables)
State modelling is a business analysis technique for describing the life cycle of one business object, such as an order or a claim: the states it can be in, the events that move it between states and the conditions on each move. State modelling uses state diagrams for the picture and state tables for completeness.
Quick facts
- Type
- Modelling technique (object life cycle)
- Origin
- Finite-state machines (Mealy, 1955; Moore, 1956); statecharts (Harel, 1987), adopted in UML state machine diagrams
- Used when
- An object has a status that drives what can happen to it next
- Variants
- State diagram (state machine diagram), state table (state transition table)
- Related techniques
- Data modelling, process modelling, business rules analysis, acceptance criteria
- Reference
- BABOK® Guide v3, §10.44 (State Modelling)
- Exam relevance
- Not named in the ECBA™ blueprint; relevant to CCBA®/CBAP® (Requirements Analysis and Design Definition)
At a glance
- Pick one business object — for example a claim, an order or a permit
- List its states — conditions that change what can happen next
- Add events and transitions — what moves the object from state to state
- Add guards and actions — conditions on a move, and what it triggers
- Check every pair in a table — each state against each event
- Confirm with stakeholders — walk real cases through the life cycle
What is state modelling in business analysis?
Many business objects have a status that matters: an order is placed, paid, shipped or cancelled; a claim is open, under assessment, approved or closed. What can happen to the object depends on its status. A shipped order cannot be cancelled in the same way as an unpaid one.
State modelling makes these life cycles explicit. Its elements are:
- States: the distinct conditions of the object, each of which changes what can happen next.
- Events: what happens to the object, such as "payment received" or "customer cancels".
- Transitions: the moves from one state to another that an event causes.
- Guards: conditions that must be true for a transition, such as "amount below delegated limit".
- Actions: what the transition triggers, such as sending a confirmation.
State modelling is therefore the technique of choice when the status of an object, not the flow of work, holds the business rules.
How do you draw a state diagram step by step?
At Harbourside Council, a business analyst models the life cycle of a parking permit:
- Pick one object: the parking permit, not the whole permits process.
- List the states: Applied, Awaiting evidence, Approved, Active, Suspended, Expired, Revoked.
- Add the events and transitions: "evidence received" moves Awaiting evidence to Approved; "payment received" moves Approved to Active; "end date reached" moves Active to Expired.
- Add guards and actions: "renewal requested" moves Expired back to Active only if requested within 30 days of expiry; each activation sends the permit to the resident.
- Mark the start and end: a permit starts as Applied and ends when Expired beyond the renewal window, or Revoked.
- Walk real cases through it with the permits team.
The walk-through raised a question nobody had asked: can a Suspended permit expire, or does suspension stop the clock? The answer became a business rule.
A state diagram is valuable precisely because drawing it forces questions like this before the solution is built.
What is a state table and why use one?
A state table lists every state against every event and records what happens in each cell: the next state, or "not allowed". For the parking permit:
| State / Event | Payment received | Resident moves away | End date reached |
|---|---|---|---|
| Approved | Active | Revoked | Not applicable |
| Active | Not allowed | Revoked | Expired |
| Suspended | Not allowed | Revoked | To be decided |
| Expired | Not allowed | Not applicable | Not applicable |
A diagram shows the transitions that someone thought of; a table forces a decision for every combination. Blank or "to be decided" cells are missing requirements, and they are much cheaper to resolve now than after go-live.
State tables also translate directly into test cases: each allowed transition and each "not allowed" cell is something to test.
State tables complement state diagrams by making the life cycle complete and testable.
When should you use state modelling?
State modelling is most useful when:
- an object has several statuses that change what users or systems may do with it, such as orders, claims, cases, contracts or tickets;
- status values are disputed or used inconsistently between teams and reports;
- events can arrive in any order, for example a cancellation that may come before or after shipment;
- test coverage matters, because each transition is a natural test case.
It is less useful for objects with no meaningful life cycle, such as reference data, or where the question is about who does what in which order across teams; a process model answers that better.
State modelling fits best when the analyst needs a precise, complete picture of one object's life cycle.
What are the limitations of state modelling?
State modelling has real strengths: it is precise, it exposes missing rules and impossible situations, and it gives testers a ready-made list of transitions to check. Its limits are well known:
- One object at a time. A state model says nothing about how several objects interact or how work flows between people.
- State explosion. Objects with many independent attributes can produce too many combined states; nested or parallel states help, but add notation that stakeholders may find hard.
- Abstraction. Some stakeholders think in steps, not states, and need the model explained with real cases.
- Status creep. Teams sometimes invent states that are really tasks or sub-steps, which makes the model longer without adding rules.
State modelling is most effective when it is used for the few objects whose status really drives the business rules.
State model vs. process model: what is the difference?
| State model | Process model | |
|---|---|---|
| Subject | One business object and its life cycle | A piece of work from trigger to outcome |
| Building blocks | States, events, transitions, guards | Activities, decisions, events, participants |
| Question answered | What can happen to this object now, given its status? | Who does what, in what order? |
| Typical example | Life cycle of a claim | Claims handling process |
| Typical use | Status rules, completeness, test design | Handoffs, roles, impact of a change |
A state model follows one object through its statuses; a process model follows the work through its steps. The steps of a process often move objects between the states of a state model.
FAQ
What is a state diagram in business analysis?
A state diagram shows the states a business object can be in, such as a claim being open, approved or closed, and the events that move it from one state to another. Business analysts use it to make status rules explicit and to find transitions nobody had considered.
What is the difference between a state diagram and a state table?
A state diagram draws the states and transitions as a picture, which is easy to discuss. A state table lists every state against every event and records the result of each combination, which makes it easy to spot missing rules and to derive test cases.
What is a guard condition?
A guard condition is a condition that must be true for a transition to happen. For example, a claim moves from under assessment to approved only if the amount is within the handler's delegated limit; otherwise it moves to referred. Guards often express business rules.
When should a business analyst use a state model instead of a process model?
Use a state model when the status of one object determines what can happen to it next, such as an order, claim or permit. Use a process model when the question is how work flows between people and systems. Many initiatives use both for the same scope.
Sources
- Harel, D. (1987). Statecharts: A Visual Formalism for Complex Systems. Science of Computer Programming, 8(3), 231–274.
- Object Management Group (2017). OMG Unified Modeling Language (UML), version 2.5.1, state machines.
- Wiegers, K. & Beatty, J. (2013). Software Requirements (3rd ed.), section on state-transition diagrams and state tables. Microsoft Press.
- IIBA® (2015). A Guide to the Business Analysis Body of Knowledge® (BABOK® Guide) v3, §10.44 State Modelling.
- Last reviewed