Requirements Analysis & Design

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)
State Modelling (State Diagrams and State Tables)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 cycle1Pick one business object2List its states3Add events and transitions4Add guards and actions5Check every pair in atable6Confirm with stakeholders

At a glance

  1. Pick one business object — for example a claim, an order or a permit
  2. List its states — conditions that change what can happen next
  3. Add events and transitions — what moves the object from state to state
  4. Add guards and actions — conditions on a move, and what it triggers
  5. Check every pair in a table — each state against each event
  6. 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:

  1. Pick one object: the parking permit, not the whole permits process.
  2. List the states: Applied, Awaiting evidence, Approved, Active, Suspended, Expired, Revoked.
  3. 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.
  4. 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.
  5. Mark the start and end: a permit starts as Applied and ends when Expired beyond the renewal window, or Revoked.
  6. 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 / EventPayment receivedResident moves awayEnd date reached
ApprovedActiveRevokedNot applicable
ActiveNot allowedRevokedExpired
SuspendedNot allowedRevokedTo be decided
ExpiredNot allowedNot applicableNot 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 modelProcess model
SubjectOne business object and its life cycleA piece of work from trigger to outcome
Building blocksStates, events, transitions, guardsActivities, decisions, events, participants
Question answeredWhat can happen to this object now, given its status?Who does what, in what order?
Typical exampleLife cycle of a claimClaims handling process
Typical useStatus rules, completeness, test designHandoffs, 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

Last reviewed

IIBA®, BABOK®, A Guide to the Business Analysis Body of Knowledge®, CBAP® and CCBA® are registered trademarks of International Institute of Business Analysis. ECBA™ and BACCM™ are trademarks of International Institute of Business Analysis. Other names may be trademarks of their respective owners. This guide is independent and is not affiliated with, endorsed by or sponsored by IIBA®. Its practice questions are original and are not taken from any IIBA® exam.