BPMN Markers
In short: A marker is a small symbol at the bottom center of a task or sub-process. It changes how often or how the activity runs: again and again (loop), once per item of a list (multi-instance), or to undo something (compensation). The type symbol in the top left corner of a task, such as the person of a user task, is not a marker. It says who or what does the work.
Symbols
| Symbol | Marker | Meaning |
|---|---|---|
| Loop | The activity repeats as long as a condition is true | |
| Multi-instance, parallel (three vertical lines) | The activity runs once per item of a list, all at the same time | |
| Multi-instance, sequential (three horizontal lines) | The activity runs once per item of a list, one after another | |
| Compensation | The activity undoes the effect of another activity | |
| Tilde (~) | Ad-hoc | The steps inside the sub-process have no fixed order |
| Plus sign in a square | Collapsed sub-process | The box contains a process that is not shown |
An activity can carry several markers, for example a collapsed sub-process that is also multi-instance.
Loop
A loop marker says: do this again until it is right. Revise the document repeats until the reviewer accepts it. The condition is checked after or before each round.
The marker is compact, but it hides the decision. The reader does not see who decides and what happens in between. A gateway with a flow back to an earlier step shows this openly and is often the better choice.
Multi-Instance
A multi-instance activity runs once for each item of a collection: one approval per department, one check per order line. The number of rounds is known when the activity starts.
- Parallel: all instances run at the same time. The activity is complete when all of them are.
- Sequential: the instances run one after another.
This is the difference to a loop: a loop repeats until a condition is met, a multi-instance activity runs a known number of times.
Compensation
Some steps cannot simply be canceled, because they have already changed something: a booked flight, a sent invoice. A compensation activity undoes such an effect, for example Cancel flight. It is linked to a compensation boundary event and runs only when compensation is triggered. Compensation appears mostly in technical processes and in transactions.
In Jira & Flower BPM
The loop marker runs on a task (a task without a type, a user task, a manual task, or an automated task with Wait for Jira Automation) when it has a loop condition: the task runs again as long as the condition is true. For every round Flower reopens the same work item (one task, one work item) and writes a comment Round 2 of ⦠on it. Set the condition in the group Loop of the properties panel:
-
Status or resolution of the work item: check the statuses or resolutions that mean āonce moreā, for example the resolution Needs rework. One of each list must fit; with both lists, both must fit (see Gateway Decision Handling).
-
Loop condition (an expression), used only when nothing is checked. Example:
${cur.fields.resolution != 'Done'}: the task runs again until its work item is resolved as Done. -
After or before: by default the condition is checked after each round. With Test before (
testBefore) it is checked before the task, so the task may not run at all. -
At most n rounds: Loop maximum (
loopMaximum) stops the loop after that many rounds; Flower counts the rounds at the process instance (flower.rounds). -
Not a loop: a loop marker without a condition, and a loop marker on a sub-process or call activity, run once. The validator warns about them.
Flower does not execute the multi-instance and compensation markers. You can set them in the modeler and they stay in the diagram. During execution a marked task behaves like a task without the marker: it runs once and creates one work item. The validator warns about multi-instance markers.
How to get the result anyway:
| You want | Model it like this in Flower |
|---|---|
| Repeat a step until it is right | A loop marker with a condition, or a gateway after the step and a sequence flow back when the decision should be visible. Either way Flower reopens the work item of the task. See BPMN Flows |
| Several people do the same step at once (a fixed number) | A parallel gateway with one task per person or team. The joining parallel gateway waits for all |
| The same step once per item of a list (for example one approval per person in a user picker) | An automated task with Jira Automation, see Once per Item of a List below |
| The same steps for a known set of cases | A call activity per request, or one process instance per request |
| Undo a step | A task on the path that handles the failure, for example after a gateway Successful? |
| Steps without a fixed order | The agile mode of Flower, see Agile Business Process Management |
Once per Item of a List
A multi-instance task runs once per item of a list whose length is known only when the process gets there, for example one approval per person in the field Approvers. Flower models this with an automated task and two Jira Automation rules:
- The automated task (a service task with Wait for Jira Automation), for example Collect approvals. When the process reaches it, Flower triggers the rule of the task and waits.
- Rule 1, one work item per item: triggered by the automated task (see Trigger Jira Automation), it uses the branch For each over the list, for example
{{issue.Approvers}}, and creates one sub-task per person with that person as assignee. - Rule 2, all done: triggered when a sub-task is resolved, with the condition Related work items: all sub-tasks match resolution is not EMPTY. Its action Flower: Complete automated task (Cloud) or a web request to
/rest/flower/latest/service/automatedTask(Data Center) reports the task done, with a result, for example approved, or rejected when one sub-task was declined (a second condition in the rule). - A gateway after the automated task decides with the result:
pi.properties.flower.results.<task id>.result.
Variants:
- One after another (sequential): rule 2 creates the sub-task for the next person instead, and completes the automated task after the last one.
- A whole process per item: map the work type of the sub-tasks to a model (Jira work type mapping in the Flower settings). Every sub-task that rule 1 creates then starts its own process instance, like a call activity per item; rule 2 waits until all of them are resolved.
- A fixed, small number: a parallel gateway with one task (or one call activity) per item is simpler and shows every branch in the diagram.
A call activity on its own runs one sub-process: the number of call activities is fixed in the model. For a list of unknown length use the work type mapping above.
The collapsed sub-process marker is only a display option of an embedded sub-process. See BPMN Sub-Processes.
Common Mistakes
- A loop marker where a decision matters. Show the gateway and the way back.
- Loop instead of multi-instance. For each item is multi-instance, until a condition is a loop.
- A plural task name instead of a marker or a loop (Review documents). The reader cannot tell how often the step runs. See tip 11 in 11 Common BPMN Modeling Mistakes.
Read More
- BPMN Tasks
- BPMN Workflow Patterns: loop and multiple instances as patterns
- BPMN Coverage in Jira
- All BPMN symbols at a glance
Frequently Asked Questions
What is a marker in BPMN?
A small symbol at the bottom of an activity that changes its behavior, for example loop or multi-instance.
What is the difference between loop and multi-instance?
A loop repeats an activity until a condition is met. A multi-instance activity runs once for each item of a list, in parallel or one after another.
What do three vertical lines on a BPMN task mean?
Parallel multi-instance: the task runs once per item of a list, and all instances run at the same time. Three horizontal lines mean sequential multi-instance.
How do I repeat a task in Jira with BPMN?
With Flower, give the task a loop marker with a loop condition or a chosen status or resolution, or model a gateway and a sequence flow back to the task. Either way, Flower reopens the Jira work item of the task.