Sequence Diagrams
A sequence diagram is a business analysis technique for showing how participants, such as people, systems or components, exchange messages over time to carry out one scenario. A sequence diagram reads from top to bottom, one lifeline per participant, and makes the order and direction of every interaction explicit.
Quick facts
- Type
- Modelling technique (interactions over time)
- Origin
- Standardized in UML (OMG, 1997), drawing on interaction diagrams from Jacobson's object-oriented methods and on message sequence charts (ITU-T Z.120, first approved 1993)
- Used when
- The order of exchanges between people and systems in one scenario matters
- Main outputs
- One diagram per important scenario: lifelines, messages, alternatives
- Related techniques
- Use cases and scenarios, interface analysis, process modelling, state modelling
- Reference
- BABOK® Guide v3, §10.42 (Sequence Diagrams)
- Exam relevance
- Not named in the ECBA™ blueprint; relevant to CCBA®/CBAP® (Requirements Analysis and Design Definition)
At a glance
- Choose one scenario — a single path, such as a main success scenario
- Name the participants — actors and systems become lifelines
- Add messages in time order — top to bottom, each named by its content
- Mark replies and waits — synchronous, asynchronous, return messages
- Add alternatives and loops — only where they matter to the scenario
- Review with the system owners — check each exchange really exists
What is a sequence diagram?
A sequence diagram shows one scenario as a conversation between participants. Each participant, such as a customer, a web store or a payment system, has a vertical lifeline. Horizontal arrows between lifelines are messages: a request, a notification or a reply. Time runs from top to bottom, so the order of the arrows is the order of the exchanges.
Business analysts use sequence diagrams to:
- clarify a scenario of a use case, showing which system does what and when;
- analyze interfaces, by making explicit which data passes between systems and in which direction;
- expose timing issues, such as a step that waits for a reply that may never come.
Sequence diagrams come from UML and are more common in IT-facing work than in pure business process work, but a simple version with people and systems is readable by most stakeholders.
A sequence diagram is therefore the clearest way to show who talks to whom, in what order, in one specific scenario.
What are the main elements of a sequence diagram?
A small subset of UML is enough for most business analysis work:
| Element | Meaning |
|---|---|
| Lifeline | A participant (actor, system or component) and its existence over time |
| Synchronous message | The sender waits for a reply before continuing |
| Asynchronous message | The sender continues without waiting |
| Return message | The reply to an earlier message, usually a dashed arrow |
| Activation bar | The period during which a participant is busy handling a message |
| Combined fragment | A box marking an alternative (alt), an optional part (opt) or a loop |
The distinction between synchronous and asynchronous messages matters for requirements: a customer waiting on screen for a credit check is a different experience from one who is notified later.
Keeping to these few elements lets a sequence diagram stay precise without becoming a technical design document.
What does a sequence diagram look like in practice?
At Kestrel Retail, a business analyst describes the "click and collect" scenario for a new online ordering channel. The lifelines are the customer, the web store, the order system, the payment provider and the store system. The main success scenario reads:
- The customer submits the order to the web store.
- The web store asks the payment provider to authorize the card and waits for the reply.
- The payment provider returns "authorized".
- The web store sends the order to the order system, which confirms it.
- The order system notifies the store system asynchronously to reserve the items.
- The web store shows the confirmation to the customer.
An "alt" fragment around step 3 shows the declined-card path. Drawing the diagram raised a question for the solution team: if the store system does not answer, does the customer still receive a confirmation? The answer became a requirement for a stock-reservation timeout.
A sequence diagram like this turns a vague "the systems talk to each other" into specific exchanges that can be agreed and tested.
When should you use a sequence diagram?
Sequence diagrams earn their place in a few recurring situations:
- Integrations. When a new system must work with existing ones, a sequence diagram shows which system calls which, what each one waits for and what happens when a reply is late or missing.
- Critical scenarios of a use case. The main success scenario and the most important failure paths of a complex use case are easier to agree when each exchange is drawn.
- Disputed responsibilities. When two teams each assume the other's system sends a notification, drawing the exchange settles the question.
- Test design. Each message and each alternative is a natural test step.
They add little for simple, single-system interactions, or where the question is about the overall process, the structure of data or the rules of a decision; other models answer those better.
A sequence diagram is the right choice when the order and direction of exchanges between participants is the open question.
What are the limitations of sequence diagrams?
Sequence diagrams have clear strengths: they make the order and direction of interactions explicit, they reveal waiting and timing problems, and they connect business scenarios to interface requirements. Their limits are just as clear:
- One scenario at a time. Each diagram shows one path; covering many alternatives needs many diagrams or crowded fragments.
- Drift toward design. It is easy to slip into technical calls and parameters, which belong to the solution team rather than to requirements.
- Less readable for business stakeholders when there are many lifelines or nested fragments.
- No overall picture. A sequence diagram does not show the whole process, the life cycle of an object or the structure of data.
Sequence diagrams are most useful for the few scenarios where the order of system interactions is critical or disputed.
Sequence diagram vs. state model: what is the difference?
| Sequence diagram | State model | |
|---|---|---|
| Subject | Several participants in one scenario | One object across its whole life cycle |
| Shows | Messages exchanged, in time order | States and the events that change them |
| Scope of each model | One path through the work | Every allowed transition of the object |
| Typical use | Interfaces, timing, scenario walk-throughs | Status rules, completeness, test design |
A sequence diagram follows one scenario across many participants; a state model follows one object across many scenarios. Together they show both the conversations and the life cycle.
FAQ
What is a sequence diagram used for in business analysis?
A sequence diagram shows how people and systems exchange messages, in time order, to carry out one scenario. Business analysts use it to clarify use case scenarios, to analyze the interfaces between systems and to expose timing and waiting problems before the solution is designed.
What is the difference between synchronous and asynchronous messages?
With a synchronous message, the sender waits for a reply before continuing, like a web page waiting for a payment authorization. With an asynchronous message, the sender continues without waiting, like a notification sent to a store system. The difference often changes the user experience and the error handling.
Is a sequence diagram the same as a swimlane process model?
No. Both show several participants, but a swimlane process model shows the work and decisions of a whole process, while a sequence diagram shows the messages exchanged in one scenario. Sequence diagrams are more precise about the order and direction of interactions, especially between systems.
Do business analysts need to know UML to draw sequence diagrams?
Only a small part of it. Lifelines, messages, replies and simple fragments for alternatives and loops cover most business analysis needs. Detailed UML features, such as object creation or complex timing constraints, are usually left to the solution team.
Sources
- International Telecommunication Union (1993; current edition 2011). Recommendation Z.120: Message Sequence Chart (MSC). ITU-T.
- Object Management Group (2017). OMG Unified Modeling Language (UML), version 2.5.1, interactions.
- Fowler, M. (2003). UML Distilled: A Brief Guide to the Standard Object Modeling Language (3rd ed.). Addison-Wesley.
- IIBA® (2015). A Guide to the Business Analysis Body of Knowledge® (BABOK® Guide) v3, §10.42 Sequence Diagrams.
- Last reviewed