Software Design and Architecture: UML Diagrams (Activity Diagram)

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 9

Software Design and

Architecture
UML Diagrams (Activity Diagram)
Activity Diagram
•Activity diagram is another important diagram in UML to describe
dynamic aspects of the system.
•Its flow chart to represent the flow form one activity to another
activity. The activity can be described as an operation of the system.
•The purposes can be described as:
Draw the activity flow of a system.
Describe the sequence from one activity to another.
Describe the parallel, branched and concurrent flow of the system.

2
Activity Diagram Components
Actions - a step in the activity wherein the users or software perform a given
task.
Decision node - a conditional branch in the flow that is represented with a
diamond. It includes a single input and two or more outputs.
Control flows - this is another name for the connectors that show the flow
between steps in the diagram.
Start node - symbolizes the beginning of the activity. This is represented with a
black circle.
End node - represents the final step in the activity. It's modeled with an outlined
black circle.

3
Activity Diagram Notations & Symbols

4
Activity Diagram Notations & Symbols

5
Activity Diagram for
Airline Reservation

6
Activity Diagram for
Course Registration

7
Practice Exercise
Ticket vending machine, i.e. vending machine that sells and produces tickets
to commuters. The ultimate goal of the Commuter in relation to our ticket
vending machine is to buy a ticket. So we have Purchase Ticket use case.
Purchasing ticket might involve a bank, if payment is to be made using a
debit or credit card. So we are also adding another actor - Bank. Both actors
participating in the use case are connected to the use case by association.
Based on the provided trip info ticket vending machine will calculate
payment due and request payment options. Those options include payment
by cash, or by credit or debit card. If payment by card was selected by
Commuter, another actor, Bank will participate in the activity by authorizing
the payment.

You might also like