Adding variables to activities

When you use activities to model the flow of information, you can add variables that specify the data that actions in a group share. Typically, you use variables to store and access information within or between actions. An application might use variables to store or access information as a complement or alternative to using object flows. You modify variables by using variable actions.

Before you begin

An activity must be visible in the Project Explorer view.

About this task

To add a variable:

Procedure

  1. In the Project Explorer view, right-click the activity that will own the variable; then click UML Properties.
  2. In the Properties window, in the left pane, click Variable.
  3. On the toolbar on the right, click Insert New Variable (The image shows the Insert New Variable button.).

Results

The variable is added to the activity and you can access or modify it by using variable actions.

Feedback