Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Elements of activity diagrams

One page per symbol of a activity diagram: what it looks like, its syntax and the UML 2.5.1 clause it follows. Use these pages to look something up; to write a whole diagram, start with Activity diagrams.

ElementSyntax
Actionaction "Name"
Initial and final nodesstart, stop, end
Decision and mergeif, switch, while, repeat
Fork and joinfork { ... } and { ... }
Object nodeobject "Name"
Signalssend "Name", accept "Name"
Partitionlane "Name" { ... }
Notenote: text
diagram activity "All the activity elements"
start
action "Receive"
if "valid" {
  action "Process"
} else {
  action "Reject"
}
stop
All the activity elements Receive Process Reject [valid] [else]

See Activity diagrams for how to write one, and the grammar for every statement.