Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Sequence Diagram

Getting to know the Sequence Diagram

Introducing the Sequence Diagram

The Sequence diagram is one of the Unified Modeling Language (UML) Behavioral diagrams that can be used to define the time ordered flow of messages between elements. They can be used by business and technical users but are more commonly used for technical descriptions of a system. Time is by convention represented on the vertical axis and elements (Classifiers or Instances) are positioned horizontally at the top of the diagram. Commonly an Actor (representing a role played by a user) starts the flow and messages are passed between the elements showing how a result is achieved.

Business Analysis tool, the Sequence diagram in Sparx Systems Enterprise Architect

Where to find the Sequence Diagram

Ribbon: Design > Diagram > Add Diagram > UML Behavioral > Sequence

Browser window Toolbar : New Diagram icon >  UML Behavioral > Sequence

Browser window context menu | Add Diagram... > UML Behavioral > Sequence

Usage of the Sequence Diagram

The Sequence diagram can be used to model any set of messages that flow between two or more elements to produce a result. They are more typically used by technical modelers to depict how messages are passed between application components and interfaces to achieve an outcome. They are particularly useful when used to describe complex protocols or subsystem interactions that are difficult to understand unless presented graphically. Sequence diagrams can also be created automatically from stack traces as a way of visualizing how a system functions.

Options for the Sequence Diagram

The elements that appear in Sequence diagrams can be either Classifiers such as Classes and Components or instances such as Objects and Component Instances. The choice will depend on what the modeler wants to represent. The order of objects and messages can be altered to make the diagram more readable and notes can be used to explain parts of the diagram. Fragments can also be added to represent control structures that operate on a group of messages.

Interaction toolbox for UML Sequence diagrams in Sparx Systems Enterprise Architect.

Learn more about the Sequence Diagram

Sequence Diagram