Activity Diagrams
Type of UML
Just Like Flow charts

Syntax

ShapePurpose
Filled DotStart of AD
Prolong OvalAn Action (Starting with Verb)
ArrowRepresents the direction
DiamondDecision, choice, if / else
Double Horizontal LinesFor concurrent tasks
Sub HierarchyDefines that an activity has a sub activity
Filled Dot encircledEnd of AD

image-20250117203419191.jpg

image-20250117203419311.jpg

Syntaxial Rules

  • No two diamonds can be together
  • The sub activity of an activity has to be drawn in another AD
  • The arrows of the diamonds can be drawn from any side

Swimlane Activity Diagram

Consists of multiple activity flows within a single diagram
The flow can shift from one to another
Helps us to determine the involvements of multiple participants / actors

image-20250117203419325.jpg