110 WebSphere Version 5 Application Development Handbook
Before starting the software project, you can create activity diagrams to model
the most important workflows in the business. This helps you define the
structure and dynamics of the business.
During the requirements phase, you can create activity diagrams to further
break down and visualize the flow of events in use cases.
During analysis and design, you can use activity diagrams to help define the
behavior of operations.
Table 5-6 lists the elements for an activity diagram.
Table 5-6 Activity diagram elements
Creating the display balance activity diagram
In this section we guide you through the process of creating an activity diagram
in Rational XDE to model the PiggyBank features. For a description of this
activity diagram, see Table 5-3 on page 104.
To create the activity diagram, in the Model Explorer window, expand the Use
Cases package found under the (ItsoAdModel) Use-Case Model.
Select Display balance and select Add diagram -> Activity. This gives you an
Name the diagram Display balance activity.
To add the Customer swimlane, select Swimlane from the UML Activity toolbox
and click in the diagram. Name the swimlane Customer/Teller. Repeat this
step to add the System swimlane.
To merge the swimlanes, select both swimlanes and Swimlane -> Merge
Activities Performance of a task or duty in a workflow
Decisions Locations where workflow may branch or merge
Transitions Pathway between activities and/or decision points
Initial and final states Beginning and ending of a workflow or process
Swimlanes Show who or what carries out the activity
Synchronization Splits workflow into parallel flows or brings parallel
flows back together