Syntax

Process and lanes

Name the process, then put each step in the lane of the role that does it.

The process line sets the process name. Put it first.

Lanes are optional. Leave them out when one person or team does all the work:

Flowmark
process Send invoice
start Order shipped
service Create invoice
send Email invoice
end Invoice sent

Use lanes for roles

When more than one role is involved, give each one a lane:

  • lanes A | B | C fixes their order from top to bottom.
  • lane B puts every node after it in lane B, until the next lane line.
  • A lane you switch to without listing it in lanes goes after the others, in the order you first use it.
  • Nodes that come before any lane line go in the first lane.

Switching lanes doesn't break a path. In this example each step still connects to the one before it, across three lanes:

Flowmark
process Customer refund
lanes Customer | Support | Finance

lane Customer
start Refund requested
lane Support
user Check order
lane Finance
service Issue refund
lane Customer
end Refund received

Lanes inside a lane

To split a lane, such as a department into its teams, write the outer lane's name, >, and the inner lane's name. Steps go in the inner lanes, so switch to those, not to the outer lane.

Flowmark
process Order fulfilment
lanes Sales | Operations > Warehouse | Operations > Shipping

lane Sales
start Order received
user Check order
lane Warehouse
manual Pick items
lane Shipping
manual Hand to carrier
end Order shipped
  • lane Operations > Warehouse works too, and makes the same lane.
  • A lane name is used once, so a lane can't be inside two others.
  • Lanes can go several levels deep. One level is usually enough to read.
  • In the BPMN XML, the inner lanes are a child lane set of the outer lane.

Lanes or pools

Lanes are for your own roles and departments. For a party outside your organization, use a pool. That covers a customer you exchange messages with, or a supplier.

A pool can have lanes of its own too. See Pools and messages and Lanes in a pool.

To describe the process itself, add doc: lines before the first node. See Documentation and notes.

On this page