Professional Documents
Culture Documents
Activity Diagrams: Object-Oriented Software Systems Engineering - Chapter 6
Activity Diagrams: Object-Oriented Software Systems Engineering - Chapter 6
Chapter 6
Activity
a sort of state which is left by the previous activity
activity can involve many steps, including waiting for
events
Transition
an arrow line without label
actions are included in activities rather than on the
transition
Synchronisation bar
describing the co-ordination of activities
waiting for all the subtasks to finish before proceeding
(join),
starting several subtasks in parallel (fork)
Decision activity
an alternative to guard conditions on separate transitions
leaving the same state
Swimlanes and partitions
several groups of related activities
these activities are related according to which objects or
actors perform them
Start and stop
Activity 1 Activity 2
[condition 1]
start [condition 2]
Activity 3
Activity 4 Activity 5
Synchronisation bar
stop
Object-Oriented Software Systems Engineering – Chapter 6 Slide 6
Activity Diagrams - modelling workflow
[joined bank]
log on
second level
authorisation
make manage
payment instruction
Wait in
queue
[returning]
[borrowing]
Record Put book
return back on shelf
Request product
Ship order
Pay bill
Activity diagrams
Close order
- Example
print “Failed”
[false]
[true]
print “Passed”
print “Failed”
[false]
[true]
print “Passed”
Suitable for:
Analysing a use case
Understand what actions need to take place
Describe the behavioural dependencies between objects
Allocate operations to objects within interactive diagrams
Understanding workflow across many cases
Representing use cases interacting with each other
Dealing with multithreaded applications
Not suitable for:
Trying to see how objects collaborate – use collaboration
diagrams instead
Trying to see how an object behaves over its lifetime –
use state diagrams instead