1
Information Systems Concepts Activity Diagrams Roman Kontchakov
Birkbeck, University of London
Based on Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design Using UML, (4th Edition), McGraw Hill, 2010
Activity Diagrams Roman Kontchakov Birkbeck, University of London - - PowerPoint PPT Presentation
Information Systems Concepts Activity Diagrams Roman Kontchakov Birkbeck, University of London Based on Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design Using UML, (4th Edition), McGraw Hill, 2010 1 Outline
1
Based on Chapter 5 of Bennett, McRobb and Farmer: Object Oriented Systems Analysis and Design Using UML, (4th Edition), McGraw Hill, 2010
2 Activity Diagrams
Section 5.3 (pp. 122 – 128)
3
Activity Diagrams can be used to model
high-level business tasks
in the early stages of a project or when the relevant objects or classes have not been identified
system functions (represented by use cases) or object
but communication/sequence diagrams are closer to the spirit
4
Activity Diagrams are essentially Flowcharts /
sequence, selection, iteration concurrence
5
action node
rectangle with rounded
action edge
open arrow
Add a New Client Assign Staff Contact
6
initial node
black circle
decision node
diamond
guard condition
in square brackets
final node
black circle in white circle
[campaign to add] [no campaign to add] Add a New Client Assign Staff Contact Add New Campaign
7
Multiple flows from an action are implicitly AND-ed Guard conditions do not have to be mutually
Decisions should be strictly nested, but a merge point
8
fork node
thick bar
actions carried
Add a New Client Assign Staff Contact Add New Campaign
9
class name
can be shown followed
Operation Name
can be shown after the
[no more adverts] getFirst (AdvertCollection::) getCost (Advert:) getNext (AdvertCollection::) getOverheads (Campaign::) [more adverts] Campaign::calculateCost [no more adverts] getFirst (AdvertCollection::) getCost (Advert:) getNext (AdvertCollection::) getOverheads (Campaign::) [more adverts] Campaign::calculateCost
10
objects
rectangle optionally shows the
object flows
open arrow
Record completion
Campaign [Active] Campaign [Completed]
11
activity partitions
vertical columns labelled with the
Record Completion
Issue invoice
Campaign Manager Client Accountant
Pay invoice Record client payment
[no more staff to assign] [more staff to assign] [no staff to assign] Assign Staff Contact Add New Campaign [campaign to add] [no campaign to add] Assign Staff to Campaign [staff to assign] Add a New Client Administrator Campaign Manager :Client [New] :Campaign [Commissioned]
Write Chapter Review Chapter
Author Printer Typesetter Reviewer
Typeset Book Correct Proofs Reset Book Print Book [book complete] [book not complete] Revise Chapter Write Chapter Review Chapter
Author Printer Typesetter Reviewer
Typeset Book Correct Proofs Reset Book Print Book [book complete] [book not complete] Revise Chapter
Write Chapter Review Chapter
Author Printer Typesetter Reviewer
Typeset Book Correct Proofs Reset Book Print Book [book complete] [book not complete] Revise Chapter Write Chapter Review Chapter
Author Printer Typesetter Reviewer
Typeset Book Correct Proofs Reset Book Print Book [book complete] [book not complete] Revise Chapter Plan Chapter Produce First Draft Revise Draft [satisfied] [not satisfied] Add Exercises Add References to Bibliography Write Chapter
15
16
Activity Diagrams
Purpose Notation