SysML Diagrams

Sequence Diagram

Innoslate's ‘Sequence Diagram’ is used to represent the sequential message flow (Action entities) between Lifelines (Asset entities).

Using Sequence Diagrams

Function Description
Creating Sequence Diagrams Using ‘Diagrams View’ in Innoslate, you can create a new ‘Sequence Diagram.’
Sequence Diagram Constructs The ‘Sequence Diagram’ supports two unique diagram constructs: a ‘Lifeline’ and a ‘Message.’
Adding a Lifeline ‘Lifeline’ construct can be added to a ‘Sequence Diagram’ via drag-and-drop.
Adding a Message ‘Message’ construct can be added to a ‘Sequence Diagram’ via drag-and-drop.
Removing a Construct A construct can be easily removed from a ‘Sequence Diagram.’
 Sequence-Diagram

The ‘Sequence Diagram’ is used to represent the sequential message flow (Action entities) between Lifelines (Asset entities). The diagram is represented in standard SysML and LML notation and is bidirectionally compatible with the Action diagram.

In order for the Actions to appear in the Sequence Diagram, the Action must have the 'generating' Relationship to an Input/Output  as well as the 'Trigger' Relationship Attribute to 'Yes'.  

Creating Sequence Diagrams

Within the ‘Diagrams Dashboard,’ users can create a new diagram by clicking the ‘ Create Diagram’ button in the top right corner of the page.

create_activity-2-1536x776 (1)

 

Clicking the ‘ Create Diagram’ button will open the Create Diagram dialog where you will be directed through the process of creating a new diagram.

Create a Sequence Diagram

  1. Choose Which Type of Diagram to Create
    In step 1, select ‘Sequence Diagram,’ under ‘SysML,’ as your diagram type.

                  create_sequence_step1-1

     

    Click the ‘Next’ button.

                 create_sequence_step1-2

  2. Specify New Root Action Information
    In step 2, you will be prompted to input a diagram ‘Name,’ ‘Number’ (optional), and ‘Description’ (optional). Then, click the ‘Finish’ button to save and automatically open your new Sequence Diagram.

                  create_sequence_step2

Sequence Diagram Constructs

This section defines the building blocks of a ‘Sequence Diagram’ in Innoslate. The ‘Sequence Diagram’ supports two unique diagram constructs: a ‘Lifeline’ and a ‘Message.’ Each diagram construct is described in more detail below:

  • Lifeline

    This construct is used to capture the physical components of a system that are interacting with each other.

    In the system model, an Asset entity is used to represent a ‘Lifeline’ construct. Innoslate’s default database schema includes labels to specify the type of this Asset entity as a(n) Architecture, Context, Environment, External System, Facility, Infrastructure, Materiale, Organization, Package, Personnel, Segment, Service, Subsystem, and/or System.

    In the diagram, this construct is represented as a rectangle shape containing the name of the ‘Lifeline’ with a dashed vertical line centered below it.

    lifeline construct_seq diag

  • Message

    In the context of Sequence Diagrams, the 'Message' construct represents interactions between 'Lifeline' entities. These interactions are carried out by 'Actions,' which are processes that facilitate the exchange of inputs and outputs between 'Lifelines.' To be included in the Sequence Diagram, these 'Actions' must have a generating relationship along with its Relationship Attribute 'Trigger' set to 'Yes.'

    In the diagram, this construct is represented as an arrow pointing to a destination ‘Lifeline’ which originates from a source ‘Lifeline,’ and a line label containing the name of the ‘Message.’

    message construct_seq diag

Adding a Lifeline

‘Lifeline’ construct can be added to a ‘Sequence Diagram’ via drag-and-drop.

  1. Within a ‘Sequence Diagram’, click the ‘Lifeline (Asset)’ icon in the ‘New’ tab of the left sidebar and continue to hold down the left mouse button.

    add_lifeline_step1

  2. Drag the ‘Lifeline (Asset)’ icon over to the adjacent diagram canvas.

    add_lifeline_step2

  3. Release the left mouse button while over the diagram canvas to drop the new ‘Lifeline’ and add it to the diagram. The ‘Lifeline’ will automatically snap to the position at the top of the diagram, ordered by number.

    add_lifeline_step3

     

    Notice the ‘Lifeline’ stays selected once it has been dropped. Since it is selected, the toolbar changes to include buttons for functions that can be used on the construct. The sidebar also changes to include additional ‘Metadata,’ ‘Attributes,’ and ‘Relationships’ tabs.

  4. Once added to the diagram, enter a meaningful ‘Name’ for your new ‘Lifeline’ via the ‘Attributes’ tab of the left sidebar (focused automatically for convenience).

    add_lifeline_step4

  5. Click the ‘Save’ button located on the toolbar to persist your changes to your project’s database.

    add_lifeline_step5

* Note: The above process describes using the ‘New’ tab of the left sidebar, which automatically generates a new entity to represent each new diagram construct. If you would like to reuse existing entities from your database to represent a new construct, use the ‘Existing’ tab instead.

Adding a Message

‘Message’ construct can be added to a ‘Sequence Diagram’ via drag-and-drop.

  1. Within a ‘Sequence Diagram’, select the source ‘Lifeline’ where you would like the ‘Message’ to originate from.

    add_message_step1

  2. Click the green circle and continue to hold down the left mouse button.

    add_message_step2

  3. Drag the green circle to the dashed line below the destination ‘Lifeline’ of your choice.

    add_message_step3

  4. When the dashed line below the destination ‘Lifeline’ highlights green, release the left mouse button to drop the new ‘Message’ and add it to the diagram.

    add_message_step4

     

    Notice the ‘Message’ stays selected once it has been dropped. Since it is selected, the toolbar changes to include buttons for functions that can be used on the construct. The sidebar also changes to include additional ‘Metadata,’ ‘Attributes,’ and ‘Relationships’ tabs.

  5. Once added to the diagram, select your new ‘Message’ and enter a meaningful ‘Name’ for your ‘Message’ via the ‘Attributes’ tab of the left sidebar.

    add_message_step5

  6. Click the ‘Save’ button located on the toolbar to persist your changes to your project’s database.

    add_message_step6
    It's important to point out, when adding messages they are automatically placed in sequential order. If you need to add a new lifeline in a different position, you can simply drag the message and drop it to the desired spot on the receiving lifeline with the dashed lines, as indicated in the image below.
     lifeline mult messages order

Note: The above process describes using the ‘New’ tab of the left sidebar, which automatically generates a new entity to represent each new diagram construct. If you would like to reuse existing entities from your database to represent a new construct, use the ‘Existing’ tab instead.

Removing a Construct

A construct can be easily removed from a ‘Sequence Diagram.’

  1. Within a ‘Sequence Diagram,’ select the construct you wish to remove. This will make the toolbar appear with applicable functions which can be used on the selected construct.

    removing_seq_step1

  2. Click the  ‘Remove’ button to remove the construct from the diagram (as the default action). 

    removing_seq_step2

    * Note: The  ‘Remove’ button also includes a drop-down menu where you can select ‘Delete from Database’ or the default option of ‘Remove from Diagram.’

Tutorial Video

 

To continue learning about SysML Diagrams, Click Here.

(Next Article: Sequence Diagram Modifications & Settings)