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
- In the Project Explorer view, right-click
the activity that will own the variable; then click UML Properties.
- In the Properties window, in the left pane,
click Variable.
- On the toolbar on the right, click Insert New Variable (
).
Results
The variable is added to the activity and you can access or modify
it by using variable actions.