Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bpmn - How to model an optional task

Tags:

bpmn

camunda

enter image description here

After the Task 1 is completed, we need to spawn an optional task, based on a condition. The process completion does not depend on this optional task completion.

What is the correct way to design this model ?

like image 435
Guillaume Morin Avatar asked May 02 '17 13:05

Guillaume Morin


People also ask

What are the three types of activities within a process in BPMN?

There are basically three BPMN activity types: BPMN Task. BPMN Sub-Process. BPMN Call Activity.

Can you have multiple start events in BPMN?

The BPMN standard allows for multiple start and end events to be used at the same process level. There a few reasons why the business analyst may use multiple start or end events, but caution must be used to avoid mistakes.

What is a sub-process in BPMN?

In BPMN, a sub-process is a compound activity that represents a collection of other tasks and sub-processes. Generally, we create BPMN diagrams to communicate processes with others. To facilitate effective communications, we really do not want to make a business process diagram too complex.

What is an intermediate event BPMN?

An intermediate event is any event that occurs between a start and an end event. The intermediate event circle has a double line, and the event can catch or throw information. Connecting objects indicate the directional flow, determining whether the event is catching or throwing.


2 Answers

the desired behaviour can be modeled like this:

BPMN Diagram

After Task1 completes Task2 is triggered, if the optional Condition is true, the optional Task is triggered as well. The Instance is terminated after Task2 is finished. If the optional Task was still active it will be terminated.

like image 142
Patrick Werner Avatar answered Sep 21 '22 09:09

Patrick Werner


Modeling optional task in BPMN

You should use conditional marker for the optional flow. Exclusive gateway in your diagram will always execute mandatory Task 2, optional task will always be ignored even when the condition for its execution is true.

Parallel gateway can not be used as it will wait for the optional task to complete for successful merge.

like image 22
VivekRatanSinha Avatar answered Sep 20 '22 09:09

VivekRatanSinha