Sequence Diagram Explained

Create Your Sequence Diagram Now

What Is A Physical Network Diagram?

Sequence diagrams are commonly used by developers to depict interactions between objects in a use case (actions that show interactions between an actor and a system to achieve a goal). Such diagrams typically illustrate how different parts of a system interact with each other, and in what order, to achieve an outcome. They are most commonly used by software developers but have been increasingly adopted within business settings as well, due to its ability to show how a system operates clearly.

How Can a Sequence Diagram Helps You?

So when should sequence diagrams be used, and what can they be used for?

  • To illustrate interactions between actors (system users) and the system, or various parts of a system.
  • To show the time order in which events occur.
  • To be used as a handy form of documentation on how a system functions. This documentation can be passed on to other persons or organizations.

Sequence Diagram Symbols

Now that we have discussed what it is and its purpose, let’s take a look at some commonly used symbols and components in a sequence diagram.

object lifeline Object Lifeline

Objects or parts of a system that interact during the sequence.

alternative fragment Alternative Fragment

Two or more message sequences exist, and a choice must be made between the two of them.

loop fragment Loop Fragment

Represents a repetitive sequence.

choice fragment Choice Fragment

A sequence can only occur under certain circumstances. Otherwise, it will fail.

activation Activation

Represents an active object during an interaction between two objects. The length of the bar represents the duration of an object’s activeness.

object deletion Object Deletion

Ends the lifeline of objects or messages.

actor Actor

Can be a human user or other external subjects.

entity Entity

Represents system data.

boundary Boundary

Represents software element in a system.

control Control

Organizes entity and boundary elements.

note sequence diagram Note

Used to contain additional useful information for the modeller/developer.

message Message

Sender of the message must wait for the receiver to process the message before continuing to send another message.

message return Message Return

Receiver of the message passes information back to the sender.

asynchronous message Asynchronous message

Message sender continues sending messages without waiting for the receiver to process its messages.

self delegation Self delegation

When an object sends a message to itself.

end point End point

How to Draw a Sequence Diagram in EdrawMax?

EdrawMax’s intuitive software allows you to create your sequence diagrams. Follow this outline to create one that fits your needs with minimum effort.

  • Step 1: In your browser, visit https://www.edrawmax.com/online/ to access the online version, or download the desktop version at https://www.edrawsoft.com/download-edrawmax.html
  • Step 2: In the white sidebar, click on Software Development. Then, click on the UML Modelling box that appears near the top of the screen.
  • activity diagram edrawmax window 1
  • Step 3: Choose a template, or click on the UML Modelling box with the “ + ” to open a new document. Alternatively, you may type in “sequence diagram” in the search bar above and use a ready-made template.
  • activity diagram edrawmax window 2
  • Step 4: The symbol library can be found to the left of the screen. Scroll down further to find more sequence diagram-related symbols.
  • activity diagram edrawmax window 3
  • Step 5: Simply drag the components you need from the symbol library onto the blank document to start creating. Each element can be moved, resized, or customized to fit your needs.

Sequence Diagram Examples

Here are examples of sequence diagrams created on EdrawMax.

sequence diagram example

Diagram 1: a customer logging into their online shopping account. This diagram shows what occurs during the verification process.

sequence diagram example

Diagram 2: ATM withdrawal. This diagram shows what interactions occur between the customer, the ATM machine and the bank during a cash withdrawal.

Key Takeaways

In any seemingly simple operation, there are always multiple parts interacting to create a certain outcome. Sequence diagrams are a fantastic way of visualizing and illustrating complex processes, allowing you to break down all of the interactions and see how a system operates on a macro scale. Use Edraw Max’s sequence diagram tools to create your sequence diagrams now!