Syntax

Steps

Declare each node on its own line, with a kind and a name.

A node line is the kind, then the name: user Approve invoice. Kinds are always lowercase, and so are event types.

Flowmark
process Business trip
start Trip approved
user Choose flights
service Book flights
send Send itinerary
manual File paper receipts
end Trip booked

Penna also reads a BPMN element name as the kind, as in userTask Approve invoice or startEvent:message Order received. It writes it back as the short kind.

Kinds

KindBPMN elementExample line
startStart eventstart Order received
endEnd eventend Order shipped
catchIntermediate catch eventcatch:message Payment received
throwIntermediate throw eventthrow:signal Stock updated
taskTasktask Archive file
userUser taskuser Approve invoice
serviceService taskservice Check credit score
manualManual taskmanual Pack parcel
scriptScript taskscript Calculate discount
ruleBusiness rule taskrule Decide risk class
sendSend tasksend Send quote
receiveReceive taskreceive Receive signed contract
callCall activitycall Run credit check
subSub-processsub Handle return
xorExclusive gatewayxor Approved?
andParallel gatewayand #split
orInclusive gatewayor Which documents are missing?
eventgwEvent-based gatewayeventgw #wait
complexComplex gatewaycomplex Two of three in?

Events take a type after a colon, such as start:message. See Events. Gateways split and merge paths. See Gateways.

Pick a task type

  • user: a person works in a system.
  • manual: offline work, such as packing a parcel.
  • service: the system does it on its own.
  • send and receive: a message goes to or comes from another party.
  • rule: a decision table decides.
  • call: a reusable process of its own.

A sub on its own is drawn collapsed, as a placeholder for a detailed area. Indent its steps under it to draw them inside it. Or use call to point to a process with a diagram of its own. See Sub-processes.

Call another process

A call activity runs a process that has a diagram of its own. Name that diagram in a calls: line under it:

call Check credit
  calls: Credit check

Penna finds the diagram by its name. When you pick the diagram in the Properties panel, Penna also adds its id after the name, as in calls: Credit check #k3y9cr3d1tch3ck0. With the id, the link still works after someone renames the called diagram.

Open the called diagram from the step's right-click menu or from the Properties panel. In the BPMN XML, the name is the call activity's calledElement.

The name can also be a process with no diagram in Penna, such as one kept in another tool: calls: Credit scoring. Penna then keeps the name alone, and the XML carries it as calledElement too. On the canvas, choose Calls › Other process… to type it.

Repeat a step

A task, sub-process or call activity that runs more than once gets a repeat: line under it. The canvas draws a marker at the bottom of its shape.

  • repeat: loop runs it again until it's done, as in "keep calling until they answer". The marker is a looping arrow.
  • repeat: parallel runs it once for each item, all at once, as in "each reviewer reads the paper". The marker is three upright bars.
  • repeat: sequential runs it once for each item, one after another, as in "check each receipt in turn". The marker is three flat bars.
Flowmark
process Expense audit
start Report submitted
user Check receipt
  repeat: sequential
service Pay employee
end Employee paid

A step that repeats on its own needs no arrow back to it. When the path back goes through other steps, draw a loop with a gateway instead.

In the BPMN XML, loop is a standardLoopCharacteristics. The other two are a multiInstanceLoopCharacteristics, sequential or not.

Custom properties

A step can carry facts the diagram doesn't draw, such as the system it runs in or who owns it. Add a property: line for each, with a name and a value:

service Pay supplier
  property: System = SAP
  property: Owner = Accounts payable
  • A property's name is unique on its step and has no = in it.
  • Properties show in the step's Properties panel, where you can add, change and remove them.
  • In the BPMN XML they're camunda:property entries, which Camunda and most BPMN tools read. Penna keeps properties in that form when you import a .bpmn file.

Boundary events aren't a kind of their own. You attach them to a task with an on: line. See Boundary events.

On this page