Structured activities

In activity diagrams, structured activities are a type of node that you can use to create logical groups of activity nodes and edges.

You can add activity nodes and edges to a structured activity; however, these nodes and edges belong only to the structured activity. They are not shared with other structured activities.

When the structured activity is invoked, the activity nodes in the structured activity do not begin to execute until all of the input data is received. The output data from a structured activity is not available to other nodes in the activity, and flow does not continue through the activity, until all the actions in the structured activity have finished executing.

Each structured activity has a unique name that identifies the behavior that you are modeling.

As the following figure illustrates, a structured activity is displayed as a dashed-line rectangle with rounded corners. The Name compartment contains the name of the structured activity and the keyword <<structure>>. The Activity compartment contains the nodes and edges that you add to the structured activity node.

A dashed-line rectangle that has rounded corners is divided into two sections. The top section contains the name Structured Activity Node and the word structure in double angle brackets. The bottom section contains three actions, one decision, and control flow edges. One action is connected to the incoming edge of the decision. Two actions are connected to the outgoing edges of the decision.

Tip: You can hide the keyword by right-clicking the structured activity and changing the Stereotype and Visibility Style settings.

Parent topic: Activity diagrams

Related concepts
Activities
Actions
Call behaviors
Call operations
Control nodes
Object nodes
Activity edges

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.