UML Activity
UML Activity
F. ABDALLAH 1
Activity Diagram
• Intended to represent the internal behavior:
– Of an operation
– Of a use case
F. ABDALLAH 2
Concepts
❑ Activity
• Represented by a rounded rectangle, stretched horizontally
• Each activity represents a particular step in the execution of the
including method.
❑ Notation:
F. ABDALLAH 3
Concepts
Heat Cool
❑ Specific activities:
begin end
F. ABDALLAH 4
Concepts
❑ Gards : [test]
• Boolean conditions, mutually exclusive, allow the transitions
between activities
• Condition represented by a diamond
Heat
Check temperature
Cool
F. ABDALLAH 5
Concepts
❑ Branching
• The diamond can also be used to represent branching
A1
A3
A2
F. ABDALLAH 6
Concepts
❑ Synchronization bar
F. ABDALLAH 7
Concepts
❑ Synchronization Bar
F. ABDALLAH 8
❑ Example
Fill order
[Not Subscriber]
Assign place
[Subscriber]
Calculate amount
Assign place Calculate reduction
Debit card
Calculate amount
Debit Card
Print Ticket
F. ABDALLAH 9
Concepts
❑ Swimlanes
• Column showing the various responsibilities within a mechanism of
an organization
F. ABDALLAH 10
Concepts
❑ Swimlanes
Teach
Learn
Evaluate
F. ABDALLAH 11
Concepts
❑ Swimlanes
Request service
Print invoice
Take invoice and packages
F. ABDALLAH 12
Concepts
❑ Objects
• We can view the objects in an activity diagram
• The manipulation of objects allow to display the modification of their state
: order
[performed]
Print invoice
F. ABDALLAH 13
Activity Diagram
F. ABDALLAH 14
❑ How to use an activity diagram
Enter customer information
Print report
Order product
F. ABDALLAH 15