Skip to main content

Activity Diagram

Overview

Activity diagrams can be used to define the flow of control of system execution.
This page explains the operations for using activity diagrams in the following order.

  • Place the activity diagram
  • Define the action
  • Define the flow

We also provide the following features to assist users in their modeling:
These will also be explained in turn.

  • Validate the model

Activity Diagram

Place the activity diagram

To place an activity diagram, follow these steps:

Place an activity diagram

Operating instructions
  1. Select the package in the model navigator and click [Add Model] > [Activity Diagram] in the context menu.
  2. The activity diagram is placed in the child element of the selected package.

Define the action

To define an action, follow these steps:

Place an action

Operating instructions
  1. Drag and drop [Actions] from the toolbox onto the displayed activity diagram.
  2. A new action is added as a child element of the displayed activity diagram.
Elements that can be added from the toolbox

You can add the following elements displayed in the toolbox to the activity diagram.

IconName
ActionsActions
Input pinInput pin
Output pinOutput pin
ObjectObject
StartStart
ExitEnd
Flow endFlow end
DecisionDecision
MergeMerge
ParallelParallel
JoinJoin
Signal sendingSignal sending
Receive SignalReceive Signal
Time event acceptanceTime event acceptance
Add ConnectorConnector
NoteNote
LabelLabel
Add ShapeShape

Arrange input pins and output pins as port shapes of the following elements.

  • Action
  • Signal reception
  • Signal transmission
  • Time event acceptance

Add stereotypes to actions

To add a stereotype, follow these steps:

Add stereotype

Operating instructions
  1. Select an action.
  2. Click the Add button in the Basic information > Stereotype field in the Property Inspector to display the choices.
  3. Select a stereotype and press the [OK] button to set the stereotype to the action and display the stereotype in the action shape.
tip

Stereotype choices can be defined in the package model's Detail view.

tip

Once you have added a stereotype, you can edit it from the activity diagram by following these steps:

  1. Double-click the stereotype displayed in the action to enter editing state.
  2. If you change the stereotype and confirm the edit, it will be reflected on the activity diagram and the stereotype of the action will be changed.

Define the flow

To define a flow, follow these steps:

Add relation

Operating instructions
  1. Move the pointer over the action you want to associate.
  2. Drag the [▲] icons that appear on all sides of the action and drop them onto the other action.
Flows that can be added

The following flows are available in activity diagrams:

IconName
FlowFlow
SignalSignal

Add guard conditions to your flow

To add a guard condition, follow these steps:

Add guard condition

Operating instructions
  1. Select a flow.
  2. Double-click the grayed-out [guard] to enter editing mode.
  3. Enter the guard condition you want to set, the guard condition will be displayed in the flow of the activity diagram, and the guard condition will be set in the flow.

Add stereotypes to your flow

To add a stereotype, follow these steps:

Add stereotype

Operating instructions
  1. Select a flow.
  2. Double-click the grayed-out [<<stereotype>>] to enter editing mode.
  3. Enter the stereotype you want to set, the stereotype will be displayed in the flow of the activity diagram, and the stereotype will be set in the flow.

Validate the model

The following is what is verified in the activity diagram:

  • Is there a flow connecting from the control node (decision, parallel, merge, etc.) to itself?

To validate your model, follow these steps:

Validate the model

Operating instructions
  1. Click the [UML] > [Validation] > [Check Consistency] button on the ribbon to perform validation on all models.
tip

Click the [Home] > [Model] > [Check Error] button on the ribbon to perform validation on all models in addition to the standard validation.
Also, when a new flow is added on the activity diagram, the added flow will be checked in real time.

Restrictions

  • Swim lanes are not supported.
  • The display position of action pins is different from the UML standard (they are displayed overlapping nodes).
  • Parallel/merging shapes will be oriented horizontally immediately after being added. To make parallel/merging vertical, you need to resize the shape.
  • Interruptible areas, extended areas, and exceptions cannot be written.