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.
| Element | Syntax |
|---|---|
| Action | action "Name" |
| Initial and final nodes | start, stop, end |
| Decision and merge | if, switch, while, repeat |
| Fork and join | fork { ... } and { ... } |
| Object node | object "Name" |
| Signals | send "Name", accept "Name" |
| Partition | lane "Name" { ... } |
| Note | note: text |
diagram activity "All the activity elements"
start
action "Receive"
if "valid" {
action "Process"
} else {
action "Reject"
}
stop
See Activity diagrams for how to write one, and the grammar for every statement.