Skip to content

BPMN diagrams

BPMN is the standard way of drawing business processes: who does what, in which order, and what starts and ends the work. The BPMN library has 89 of its shapes, drawn in the same hand-drawn line as the rest of SimpleDiagrams. Your process can look like someone thought about it, even if nobody did.

What's in the library

The 89 shapes come in nine groups, each under its own small heading in the Library panel:

Group What's in it
Events Start, intermediate and end events, for every trigger: message, timer, error, signal, escalation, compensation, conditional, link, cancel, terminate and the multiple kinds. A dashed ring is non-interrupting; an outlined mark waits for something, a solid one sends it
Gateways Exclusive, inclusive, parallel, complex and event-based decisions, including the event-based ones that start a process
Tasks User, service, send, receive, script, manual and business rule tasks, and a receive task that starts the process
Sub-processes Collapsed sub-process, call activity, event sub-process and transaction
Task Marks Loop, multi-instance (parallel and sequential), compensation, ad hoc and sub-process marks, to place on a task
Data Data object, data collection, data input and output (single and collection) and data store
Messages A message, starting a conversation or answering one
Conversations Conversation and call conversation
Notes and Groups Text annotation, Documentation and group

After those come two more headings: Pools and Sub-Processes, with two ready-made tiles, and Flows, with the lines that join everything up. More on those below.

Gateways and Tasks each start with a plain tile. Gateway is a diamond with nothing inside, which BPMN reads as an exclusive decision, and Task is a rounded box for a task with no particular kind. They're Basic's Diamond and Rounded Rectangle, shown here for convenience and placed at the size of BPMN's own gateways and tasks. Gateway's name goes below it, like every BPMN gateway's. Search for task and you'll find both, Basic's Rounded Rectangle and BPMN's Task. Either one places the same shape.

Search for bpmn in the Library panel to see the whole set, or for a word such as timer, gateway or message flow.

Names below the shape

Events, gateways, data, messages and conversations are named underneath. That's where BPMN puts them, so the mark inside stays readable. The name sits centred below the shape, on one line where it fits, even when it's much wider than a little event circle. Long names wrap after a few words.

To put a name somewhere else, drag it, or choose Text Position in the Shape Properties panel. See Labels on shapes.

Corners and icons keep their size

Make a task as big as you like. Tasks, sub-processes and groups keep their small rounded corners and their hand-drawn line at any size, rather than turning into balloons. A task's icon stays small in its top-left corner, and stays inside the task however you resize it. See Parts that keep their size.

Text annotations and Documentation notes

The Text Annotation and Documentation tiles place notes, so they collapse to a small icon, expand again, and link to the shape they're about. Connect one to its shape with the library's Association, the dotted line BPMN uses. Use a text annotation for a remark everyone should see on the diagram, and a Documentation note for the longer story of what a task does, which BPMN keeps as the task's documentation.

Task marks

A loop or multi-instance mark sits on a task, so connectors attach to the task, not the mark. Group the mark with its task (Cmd+G) so they move together.

Pools and expanded sub-processes

The Pools and Sub-Processes heading has two tiles:

  • Pool places swimlanes titled Pool, with two lanes. Rename the lanes for your roles, add more, and drop your tasks into them.
  • Expanded Sub-Process places a container titled Sub-Process, for a sub-process shown open, with its activities inside.

Once placed, they're ordinary swimlanes and containers, so everything on Complex shapes applies: what you drop in moves with them, and lanes can be added, resized and turned.

Flows

The Flows heading has the lines BPMN draws between shapes. Each one is an ordinary connector with a particular line and endings, and which way you draw it matters, because each ending means something at its end:

Flow Its line Draw it from… …to
Sequence Flow Filled Arrow at the end Each event, task or gateway The next one
Default Flow Slash at the start, Filled Arrow at the end The task or gateway it leaves (an exclusive, inclusive or complex gateway) The path taken when no other condition holds
Conditional Flow Diamond at the start, Filled Arrow at the end The task it leaves The path taken when its condition holds
Message Flow Dashed, Circle at the start, Hollow Arrow at the end The sender, in one pool The receiver, in another pool
Association Dotted, no endings A text annotation or other artifact The thing it describes
Data Association Dotted, Arrow at the end A data object or store The task that reads it

A task that writes data gets a Data Association the other way: from the task to the data object. Data Association also does duty as BPMN's directed association, because the two look exactly the same: use it, for example, from a compensation event to its compensation activity.

A parallel or event-based gateway never has a default flow: every path leaves a parallel one, and an event-based one waits for whichever event comes first.

A flow leaving a gateway never takes the diamond, even when it has a condition: use a plain Sequence Flow there and write the condition beside it. Message flows only ever run between pools, never between shapes in the same one.

Sequence, default, conditional and message flows run with right angles. The two dotted lines are straight.

There are three ways to use them:

  • Click a tile, then draw. The Connector tool is ready, and the next connector you draw has that flow's look. Colour still comes from the toolbar.
  • Drag a tile onto the page. You get a short connector with that look, right where you let go. Then drag each end onto a shape to connect it.
  • Change lines you've already drawn. Select them and choose Format ▸ BPMN Flow, or right-click a connector. Every selected connector takes the new look and keeps its route. Hover over a flow in either menu and it tells you which way to draw it.

The result is an ordinary connector. Change an ending later and it simply changes; nothing checks that it's still valid BPMN.

Opening and exporting BPMN files

BPMN has its own file format, .bpmn, and modelers read and write it. So a process can come here from a modeler to be drawn properly, and go back again when you're done.

Open one

Choose File ▸ Open… and pick the file, or drop it on a diagram window. It opens as a new, unsaved diagram, and your .bpmn file is never changed. Save the diagram to keep it. Each diagram in the file becomes a page.

Here's what becomes what:

In the file In SimpleDiagrams
Events, tasks, gateways, data, messages, conversations and groups The matching shape from the BPMN library, at the size the file drew it. A plain task or a gateway with no X showing is Basic's shape, as above
Text annotation A Text Annotation note, with the annotation's words
Collapsed sub-process, call activity, event sub-process, transaction The matching shape from the BPMN library
Expanded sub-process, or any of the four above drawn open A container holding what's inside it
Pool with lanes Swimlanes, holding what's in each lane
Loop, multi-instance, compensation and ad hoc markers A Task Mark on the task, grouped with it
Sequence, default, conditional and message flows, associations and data associations The matching flow, attached at both ends, so it follows when you move a shape

A shape's name becomes its label, and its id goes in its ID shape data field. A flow's name becomes its label, or its condition does if it has no name.

An element's documentation goes where you can edit it:

  • Its first documentation of 500 characters or fewer goes in the shape's Notes, which is for short notes.
  • Longer documentation, and any further documentation the element has, goes in a Documentation note beside the shape's top-right corner, collapsed and linked to the shape. Each piece gets a note of its own. Double-click a note to read it. Lines written as SimpleDiagrams writes list items, - for a bullet and 1., 2. for numbers, with two spaces before each deeper level, become lists. Other lines keep their words just as the file has them.

The sheet names each shape whose documentation went into a Documentation note. A shape is given up to ten notes. Documentation past that, or longer than a note can hold, is left out, and the sheet says so.

Some engines write a file with no drawing in it at all, just the process. That still opens. SimpleDiagrams lays it out for you, left to right along the flows, and says so. It's a tidy first draft, not a work of art. What's inside a sub-process stays out of a layout made this way, and the summary lists it.

A container's outline can be solid, dashed or dotted, with the same control as other shapes, and an event sub-process opens with the dotted border the standard gives it.

Names and colours come across too. A name the file places outside its shape stays on that side, touching the shape, and fill and outline colours are kept. Names open a little smaller than usual, at the size the file gives them or 12 points, so they fit where the file drew them. They're ordinary text, so you can change them.

If the file opens with nothing to report, you go straight to the diagram. If part of the drawing didn't come across, the file had scripts or forms, or anything else needs a word, a sheet says so. File ▸ Show Import Summary lists everything left out, named by its id and its BPMN type, while the diagram is open.

A round trip keeps the drawing, not what the engine runs

A diagram can't show forms, scripts, listeners or an engine's own settings, so they aren't imported. Only scripts and forms get a word on the sheet, but File ▸ Show Import Summary lists the rest. Export that diagram and deploy the file, and you've deployed a process without them. Keep the original.

Choreography isn't drawn. A choreography task, or anything else SimpleDiagrams doesn't recognize, arrives as a plain box with its name, and the summary lists that too.

Export one

Choose File ▸ Export as BPMN…. It writes the current page to a new .bpmn file, wherever you tell it. That's one page per file, since most modelers only show one diagram from a file, and the rest would seem to go missing.

Exporting never changes your diagram, and SimpleDiagrams never saves over a .bpmn file on its own.

The file holds everything from the BPMN library, swimlanes as pools, and containers that hold BPMN shapes as expanded sub-processes. A Rounded Rectangle counts as a task and a Diamond as an exclusive gateway, as long as a flow joins them to other BPMN shapes, or they have an ID, as shapes from a BPMN file do. They're just shapes otherwise.

Everything else gets left out, and a sheet says what:

  • Shapes BPMN has no word for, like text boxes and bitmap images.
  • Connectors that aren't attached to a BPMN shape at both ends. A valid file can't hold a line to nowhere.
  • Task Marks that aren't sitting on a task or sub-process, or that repeat a mark it already has.
  • Labels at the ends of a connector. The middle label goes in as the flow's name.
  • The diagram's other pages.

Colours, and where you've placed a shape's or a line's name, go into the file too.

Shape data mostly stays behind. Each shape's ID and Notes go in the file, and so do a call activity's Calls and a data shape's State, because BPMN has a place for them. It has no place for Performed by, Detail, Question, Content or fields of your own, so those stay in the diagram. The sheet says so, and its Show Details… names each shape and field.

Notes go in the file by kind:

On the page In the file
A shape's Notes Its first documentation
A Documentation note linked to a shape More documentation on that shape, as plain text, with lists written as - and 1.. A note linked to several shapes goes on each
Any other note linked to a shape A text annotation, with an association for each link
A note linked to nothing A text annotation

A Text Annotation you placed from the BPMN library before 5.4 still goes in the file as a text annotation. A line between two notes links neither of them, so a Documentation note joined only to another note is written as a text annotation. The one exception is a Text Annotation note: a Documentation note linked to one is its documentation. An empty Documentation note is written as a text annotation.

Because Notes goes first, a file SimpleDiagrams wrote opens again just as it was: Notes back in Notes, and each Documentation note back as a note of its own.

Two things do go in the file, but a modeler may not show them, so the sheet names those too:

  • Tasks, events and gateways outside every pool, on a page that has pools or conversations. With conversations and no pool at all, data, notes and groups too.
  • A message that isn't sitting on the middle of a message flow. One that is goes on the flow itself, which is where modelers look for it.

Data, notes and groups outside a pool go in with the pool they connect to, or else with one of the pools, and stay drawn where they are.

A flow is an ordinary connector, and nothing remembers which flow it started as, so its look is what counts. A connector with any other look between two steps in the same pool becomes a Sequence Flow, and one running between two pools becomes a Message Flow, because that's all a valid file allows. A line from data to anything but a task or sub-process becomes a plain association, and the sheet says so. Any line with one end on a note is written as an association, whatever its look.

Shapes keep the id in their ID field. A shape with none, or with an ID another shape already took, gets a new one in the file, and keeps its own. Lines, lanes and the process itself have nowhere here to keep an id, so each gets one made for it. It stays the same every time you export the same diagram, but it isn't the one the original file had.

Shape data

Each shape carries its BPMN details as shape data, ready to fill in: an event's Trigger and When, a gateway's Question, a task's Kind and Performed by, or a data object's State. Open the Page Data table to see and edit every shape's details at once. See Shape data.

The plain Task and Gateway are Basic's shapes, so they carry no BPMN details. If you want those, use one of the drawn tasks, or the Exclusive gateway, which is the same decision with its X showing.

A shape's Notes field is for a short note, up to 500 characters to edit. For anything longer, or with paragraphs and lists, link a Documentation note to the shape instead. A shape can have both, and several Documentation notes.

BPMN is a trademark of the Object Management Group. These shapes are not endorsed by it.