Lab -03.pptx
Lab -03.pptx
Activity Diagram
Nahida Islam
Lecturer, Department of CSE
Email: [email protected]
Activity Diagram
▪ In UML, the activity diagram is used to demonstrate the flow of control within the system
rather than the implementation. It models the concurrent and sequential activities.
▪ The activity diagram helps in envisioning the workflow from one activity to another. It put
emphasis on the condition of flow and the order in which it occurs. The flow can be sequential,
branched, or concurrent, and to deal with such kinds of flows, the activity diagram has come
up with a fork, join, etc.
▪ It is also termed as an object-oriented flowchart. It encompasses activities composed of a set of
actions or operations that are applied to model the behavioral diagram.
Activity Diagram
▪ An activity diagram is used by developers to understand the flow of programs on a high level.
It also enables them to figure out constraints and conditions that cause particular events. A
flow chart converges into being an activity diagram if complex decisions are being made.
▪ The purpose of an activity diagram 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
Activity Diagram
▪ Following rules are to be followed for drawing an activity diagram −
✔ A meaningful name should be given to each and every activity.
✔ Identify all of the constraints.
✔ Acknowledge the activity associations.
Activity Diagram
▪ When to use an activity diagram?
✔ To graphically model the workflow in an easier and understandable way.
✔ To model the execution flow among several activities.
✔ To model comprehensive information of a function or an algorithm employed within the
system.
✔ To model the business process and its workflow.
✔ To envision the dynamic aspect of a system.
✔ To generate the top-level flowcharts for representing the workflow of an application.
✔ To represent a high-level view of a distributed or an object-oriented system.
Activity Diagram
▪ Activity Diagram Notations:
Activity Diagram
▪ Activity Diagram Notations:
Activity Diagram
▪ Activity Diagram Notations:
Activity Diagram
▪ Activity Diagram Notations:
Activity Diagram
Activity Diagram
Assigned Task
▪ Draw the activity diagram of your proposed project.