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.
process Business trip
start Trip approved
user Choose flights
service Book flights
send Send itinerary
manual File paper receipts
end Trip bookedPenna 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
| Kind | BPMN element | Example line |
|---|---|---|
start | Start event | start Order received |
end | End event | end Order shipped |
catch | Intermediate catch event | catch:message Payment received |
throw | Intermediate throw event | throw:signal Stock updated |
task | Task | task Archive file |
user | User task | user Approve invoice |
service | Service task | service Check credit score |
manual | Manual task | manual Pack parcel |
script | Script task | script Calculate discount |
rule | Business rule task | rule Decide risk class |
send | Send task | send Send quote |
receive | Receive task | receive Receive signed contract |
call | Call activity | call Run credit check |
sub | Sub-process | sub Handle return |
xor | Exclusive gateway | xor Approved? |
and | Parallel gateway | and #split |
or | Inclusive gateway | or Which documents are missing? |
eventgw | Event-based gateway | eventgw #wait |
complex | Complex gateway | complex 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.sendandreceive: 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 checkPenna 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: loopruns it again until it's done, as in "keep calling until they answer". The marker is a looping arrow.repeat: parallelruns it once for each item, all at once, as in "each reviewer reads the paper". The marker is three upright bars.repeat: sequentialruns it once for each item, one after another, as in "check each receipt in turn". The marker is three flat bars.
process Expense audit
start Report submitted
user Check receipt
repeat: sequential
service Pay employee
end Employee paidA 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:propertyentries, which Camunda and most BPMN tools read. Penna keeps properties in that form when you import a.bpmnfile.
Boundary events aren't a kind of their own. You attach them to a task with an on: line. See Boundary events.