BPMN Tasks
In short: A task is one step of work in a BPMN process, drawn as a rounded rectangle. The small symbol in its top left corner is the task type: it says who or what does the work, a person (user task, manual task) or a system (service, script, send, receive, business rule task). In Flower, the tasks that people do become Jira work items.
Guide: Turn Tasks into Work Items shows how to set the space, work type, summary, and description of a task in Flower.
Tasks are the basic elements of BPMN processes: atomic units of work that you combine to reach a meaningful result.
Whenever a token reaches a supported task, it stops there and Flower creates a Jira work item. When the work item is resolved, the token continues on the outgoing sequence flow. See User Tasks for how the work item is created and filled.
You decide how fine-grained a task is. For example, you can model processing an order as one task Process Order, or as three tasks Collect Money, Fetch Items, and Ship Parcel.
Supported Task Types
| Task type | What it means in BPMN | Support in Flower |
|---|---|---|
| Undefined task | A task without a specific type | Creates a work item |
| Manual task | Work that people do without software support | Creates a work item |
| Call activity | Calls another process model | Creates a work item that runs the other model as sub-process |
| User task | Work that a person does with the help of software | Creates a work item |
| Service task | Work that a system performs automatically | With Wait for Jira Automation: a rule does it, the process waits for it. Without: passed |
| Receive task | Waits for a message | The process waits until the message of its name arrives, see Message Events |
| Business rule task | Evaluates business rules | Evaluates a decision (DMN); without one, like the service task |
| Script task | Runs a script | Like the service task; the script is never run |
| Send task | Sends a message | Like the service task |
Supported Task Elements
The following task types create a Jira work item. You assign them through the swimlane and choose the space and work type as described in User Tasks.
Undefined Tasks
A task without a specific type, also called a plain task. Use it when it does not matter whether the work needs software.
Manual Tasks
Work that people do without software support, for example signing a paper form.
Call Activities
A call activity runs another process model. Flower creates a work item for it and turns it into a process instance of the called model. When this sub-process is resolved, the process continues. See Sub-Processes. An embedded sub-process, in contrast, runs inside the same process instance: its tasks become work items of that instance, and it has no work item of its own.
User Tasks
Work that a person does with the help of software. This is the most common task type in Flower.
Tasks Without a Work Item
You can model service tasks, receive tasks, business rule tasks, script tasks, and send tasks. They do not create a work item. A business rule task with a decision evaluates it; what follows applies to a business rule task without one. Service, send, business rule, and script tasks wait for a Jira Automation rule when Wait for Jira Automation is ticked (see Automated Tasks); without the tick they are passed: the process goes on at once without doing anything, and the validator warns. A receive task waits for the message of its name, see Receive Tasks. Flower never runs the script of a script task: no code of a model runs on the server. To call Jira Automation or an external service, use a throw event instead.
Automated Tasks: Wait for Jira Automation
A service, script, send or business rule task with the tick Wait for Jira Automation (Properties panel, group Jira Automation; set for every new task of these types) is done by a Jira Automation rule, not by a person:
- When the process reaches the task, Flower starts the rule like a throw event does: on Forge it sets the property
flowerAutomationof the process instance (withtype= the type of the task, for exampleserviceTask) and adds the comment, on Data Center it calls the webhook of the task. No work item is created; the process waits at the task. - The rule does the work (a web request, an e-mail, a change of other work items …) and ends with Flower: Complete automated task (Forge, an action of the app) or a Send web request to
POST /rest/flower/latest/service/automatedTaskwith{"issueKey": "{{issue.key}}", "taskId": "…", "result": "…"}(Data Center). - The process goes on. The result is kept at the process instance and named in a comment; a gateway after the task decides with
${pi.properties.flower.results.<task>.result == 'approved'}. An error code takes the path of the error boundary event of the task with this code, a timer boundary event on the task is its timeout.
The whole round trip, with the rule on Forge and on Data Center: Flower BPM and Jira Automation. The task id is optional when only one automated task of the process instance waits. Without the tick the task is passed. Flower never runs the script of a script task: the rule does the work.
Service Tasks
Work that a system performs automatically.
Receive Tasks
A task that waits for a message. In Flower it works like an intermediate message catch event: the process waits until the message of its name arrives. A person, a Jira Automation rule, or another system sends it, for example with the comment @FlowerBPM Payment received on the process instance. No work item is created. See BPMN Message Events.
Business Rule Tasks
A task that evaluates business rules. In Flower BPM a business rule task calls a decision (DMN): the engine evaluates its latest published version when the task is reached, keeps the result as pi.decisions.<name>, and the process goes on; an exclusive gateway after it takes the path of the result. Wait for Jira Automation does not apply then, and the validator does not warn. Without a decision, it works like a service task. See the DMN Reference.
Script Tasks
A task that runs a script. Flower never runs the script: with Wait for Jira Automation a rule does the work, without the tick Flower passes the task and the validator warns.
Send Tasks
A task that sends a message.
Multi-Instance
Multi-instance markers (parallel and sequential), loop markers without a loop condition or on a sub-process, a call activity, a receive task, or an automated task without Wait for Jira Automation, and compensation markers are not executed. A task with a multi-instance marker or a loop marker without a condition runs once and creates one work item; the validator warns about it. A loop marker on a task with a loop condition, or with statuses or resolutions checked in the group Loop, runs the task again as long as it fits. What the markers mean and how to get the same result, also once per item of a list, is described in BPMN Markers.
To repeat an activity, give a task the loop marker, or model a loop: a gateway and a sequence flow that leads back to the activity. When the process returns to an activity that is already completed, Flower reopens its work item. This does not work for a call activity: its sub-process has already ended and would not run again, so Flower writes an error comment at the process instance instead. For this, the Jira workflow must offer a transition without a screen from the completed status back to a To Do or In Progress status. See BPMN Gateways & Decision Handling and 11 Common BPMN Modeling Mistakes.
Common Mistakes
- A task name without a verb (Invoice). Name a task with verb and object: Send invoice.
- Several steps in one task (Check and approve and file request). If different people do the parts, model separate tasks.
- A service task for work that a person does. The type tells the reader who acts. In Flower it also decides whether a work item is created.
- A task that only waits. Waiting is an event, not work.
More in 11 Common BPMN Modeling Mistakes.
Frequently Asked Questions
What is a task in BPMN?
A single step of work in a process that is not broken down further. It is drawn as a rounded rectangle.
What is the difference between a user task and a manual task?
A user task is done by a person with the help of software, for example in a form. A manual task is done without software, for example a phone call.
What is the difference between a task and a sub-process?
A task is one step. A sub-process contains several steps of its own. See BPMN Sub-Processes.
Which BPMN tasks create a Jira work item in Flower?
User tasks, manual tasks, tasks without a type, and call activities (an embedded sub-process creates work items for the tasks inside it). Service, script, send, and business rule tasks are passed (or wait for a Jira Automation rule with Wait for Jira Automation; a business rule task with a decision evaluates it), and a receive task waits for its message, see BPMN Coverage.
Learn More
-
All BPMN symbols at a glance: The overview of the BPMN reference.
-
User Tasks: How tasks become Jira work items.
-
BPMN Coverage in Jira: All supported BPMN elements at a glance.