Activity diagram (ActDiag)

ActDiag declares the flow first and the lanes second, then places every activity in the lane that owns it. That is the whole language.


#What this example shows

  • The flow declared once, as a chain.

  • Lanes with display labels.

  • An activity that belongs to exactly one lane.


#A worked example

Open it, edit it, or copy the source below.

Activity diagram (ActDiag)

The source, which you can paste into a new diagram and edit:

actdiag {
  request -> approve -> provision -> setup -> welcome;

  lane manager {
    label = "Hiring manager";
    request [label = "Raise request"];
  }
  lane hr {
    label = "People team";
    approve [label = "Approve and contract"];
    welcome [label = "Welcome session"];
  }
  lane it {
    label = "IT";
    provision [label = "Provision accounts"];
    setup [label = "Ship laptop"];
  }
}

#Making it your own

  • Declare the flow before the lanes, or the layout comes out strangely.

  • An activity in two lanes takes the last one declared.

  • More than about five lanes and the diagram stops being readable.



Specialists. Borrow one when you need it.