An Action element describes a basic process or transformation that occurs within a system. It is the basic functional unit within an Activity diagram. Actions can be thought of as children of Activities. Both represent processes, but Activities can contain multiple steps or decomposable processes, each of which can be embodied in an Action. An Action cannot be further broken down or decomposed.
An Action can be further defined with pre-condition and post-condition notes, and certain properties can be graphically depicted on the Action (Enterprise Architect prompts you to define the type of Action you are creating when you first drag the Action icon from the Toolbox). The data values passed out of and into an Action can be represented by Action Pins. For a named Action (that is, other than a basic Action) you can also assign Action Pins to represent specific properties.
For a basic (Atomic) Action, you can define the effect of the Action using the Effect tab of the element Properties dialog, and select to display the effect on the diagram.
An Action can also be depicted as an Expansion Node to indicate that the Action comprises an Expansion Region.
- Action Notation
- Action Expansion Node
- Action Pin
- Assign Action Pins
- Local Pre/Post Conditions
- Class Operations in Activity Diagrams
OMG UML Specification:
The OMG UML specification (UML Superstructure Specification, v2.1.1, p. 241) states:
An action is a named element that is the fundamental unit of executable functionality. The execution of an action represents some transformation or processing in the modeled system, be it a computer system or otherwise.
The OMG UML specification (UML Superstructure Specification, v2.1.1, p. 313) also states:
An action may have sets of incoming and outgoing activity edges that specify control flow and data flow from and to other nodes. An action will not begin execution until all of its input conditions are satisfied. The completion of the execution of an action may enable the execution of a set of successor nodes and actions that take their inputs from the outputs of the action.