Activity Diagrams
Contents:
Action States:
Are atomic
Cannot be decomposed the action
state is not interrupted by any event
Considered to take insignificant
execution time
Eg, submit plan, initialize, increment
etc
10
Activity States:
Transitions:
Branching:
Swim lanes:
Object Flow:
17
18
Activity Diagram
19
20
Common Uses:
Activity diagrams model the dynamic aspects
of a system
Typically, used in two ways
To model a workflow:
Focus on activities as viewed by actors
To model an operation:
flowcharts
Models the details of a computation
Modeling of branch, fork, and join
states is very important
The context of the activity diagram,
here, involves the parameters of the
operation and local objects
22
Custome
r
Sales
Accountin Warehou
se
g
23
Modeling a workflow:
24
25
Modeling an Operation:
To model an operation:
Collect the abstractions involved in this
operation, including the parameters and the
return types.
Identify the preconditions at the operations
initial state and the post conditions at the
operations final state. Also identify the
invariants of the enclosing class that must
hold during the execution of the operation
Starting at the operations initial state,
specify the activities and actions that take
place over time and show them in the
activity diagram as either activity states or
action states.
28
29
30