Académique Documents
Professionnel Documents
Culture Documents
Lesson 9
Dileeka Alwis
NSBM - School of Computing
Lesson 9 1
Activity Diagram
• Represent the flow of the system from one activity to
another activity.
• Activity - an operation of the system.
• Mainly used as a flow chart consists of activities performed
by the system.
• But not exactly a flow chart as they have some additional
capabilities.
– Shows different flow like sequential, branched (split) or concurrent
(parallel).
Lesson 9 2
• Drawn to understand the flow of activities and business
requirements.
• Has more impact on business understanding rather
implementation details.
• Can’t exactly match with the code.
• Mainly for business users or any other person who is not
a technical person.
Lesson 9 3
Elements in Activity Diagram
Initial node
• Starting point of the diagram.
• Only one start.
Final node
• Ending point of the diagram.
• Can have one or more ends.
Lesson 9 4
Activity
• A function performed by the system.
• May be a physical activity or an electronic activity
(eg: Display on Screen).
Flow
• The arrows on the diagram.
Lesson 9 5
Start and end of concurrent threads of control.
Fork
• Denotes the beginning of parallel activities.
Join
• Denotes the end of parallel activities.
Lesson 9 6
Decision
• One flow entering and several leaving.
• The leaving flows include conditions.
Merge
• Several flows entering and one leaving.
• The implication is that one or more incoming flows must
reach this point until processing continues.
Lesson 9 7
Lesson 9 8
Order Processing System
Lesson 9 9
Library
System
Lesson 9 10
Login
Lesson 9 11