Activity diagrams

In UML, an activity diagram provides a view of the behavior of a system by describing the sequence of actions in a process. Activity diagrams are similar to flowcharts because they show the flow between the actions in an activity; however, activity diagrams can also show parallel or concurrent flows and alternate flows.

In activity diagrams, you use activity nodes and activity edges to model the flow of control and data between the actions.

Activity diagrams are helpful in the following phases of a project:

As the following figure illustrates, an activity diagram belongs to an activity in the model. When you create an activity diagram, the activity that owns the diagram is displayed in the Model Explorer view and an activity frame is displayed in the diagram editor. After you create the activity diagram, you cannot move it in the Model Explorer view.

On the left side of the window, in the Model Explorer view, an activity diagram, called ActivityDiagram1, is displayed as a child element of the activity, called Activity1. The activity frame is displayed in the diagram editor with the title Activity1 in the header of the frame.

The following topics describe model elements in activity diagrams:

Related tasks
Modeling user workflow by using activity diagrams
Specifying the flow of control and data in activity diagrams
Grouping the behaviors in activities
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.