UML 2.0 Activity Diagram Definition
Go Up to UML 2.0 Activity Diagrams
The activity diagram enables you to model the system behavior, including the sequence and conditions of execution of the actions. Actions are the basic units of the system behavior.
An Activity diagram enables you to group and ungroup actions. If an action can be broken into a sequence of other actions, you can create an activity to represent them.
In UML 2.0, activities consist of actions. Actions are not states (compared to UML 1.x) and can have subactions. An action represents a single step within an activity, that is, one that is not further decomposed within the activity. An activity represents a behavior which is composed of individual elements that are actions. An action is an executable activity node that is the fundamental unit of executable functionality in an activity, as opposed to control and data flow among actions. The execution of an action represents some transformation or processing in the modeled system, be it a computer system or otherwise.
The semantics of activities is based on token flow. By flow, we mean that the execution of one node affects and is affected by the execution of other nodes, and such dependencies are represented by edges in the activity diagram. Data and control flows are different in UML 2.0.
A control flow may have multiple sources (it joins several concurrent actions) or it may have multiple targets (it forks into several concurrent actions).
Each flow within an activity can have its own termination, which is denoted by a flow final node. The flow final node means that a certain flow within an activity is complete. Note that the flow final may not have any outgoing links.
Using decisions and merges, you can manage multiple outgoing and incoming control flows.
Use the Object Inspector to adjust action properties, including:
- In the Properties, View, Description, and Custom tabs, configure standard properties of the element.
- In the Local Precondition and Local Postcondition tabs, select the language of the constraint expression from the Language list box. The possible options are OCL and plain text. In the edit field below the list box, enter the constraint expression for this action.