cancel
Showing results for 
Search instead for 
Did you mean: 

How to add two flow conditions in a Activiti BPMN workflow

swathirajan
Champ in-the-making
Champ in-the-making
Hi ,

I am trying to create a workflow where two flow conditions needed to added to the flow.
For example,

Person belongs to Group A + Age less than 25 = Go to  Flow 1
Person belongs to Group A + Age greater than 25 = Go to  Flow 2
Person belongs to Group B + Age less than 25 = Go to  Flow 3
Person belongs to Group B + Age greater than 25 = Go to  Flow 4

The Activiti BPMN editor allows me to specify only one flow condition.
i.e. Person belongs to Group A = Go to  Flow 1  (or)
      Age less than 25 = Go to  Flow 1

Can you please help me to specify 'AND' conditions rather than 'OR' conditions?

Appreciate your help.

Thanks,
Swathi Rajan
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
Hi,

If I correctly understood your challenge I think you could do it by using multiple exclusive gateways (cascaded)
exclusive gateway1 (person belongs groupA ==true ? ) –> exclusive gw2 (< 25?) -> flow1;
exclusive gateway1 (person belongs groupA == true ? ) –> exclusive gw2 (>=25?) -> flow2;
exclusive gateway1 (person belongs groupA  == false ? ) –> exclusive gw2 (groupB ==true ?) -> exclusive gw3 (< 25) - > flow3;
exclusive gateway1 (person belongs groupA  == false ? ) –> exclusive gw2 (groupB ==true ?) -> exclusive gw3 (>= 25) - > flow4;
exclusive gateway1 (person belongs groupA  == false ? ) –> exclusive gw2 (groupB ==false ?) -> flow5 (it's not in groupA neither in group B);