AnsweredAssumed Answered

How to programmatically execute exclusive gateway task in Activiti

Question asked by chandanmb1 on Sep 22, 2016
Hello team,


<blockcode>
                                                                                                        UserTask2——>

   Start —-> UserTask1—Exclusive gateway— >                                                          —-UserTask4—->End


                                                                                                         UserTask3——–>

</blockcode>

  I have a sample workflow like above. After UserTask1 i have used exclusive gateway to run either UserTask2 or UserTask3.
  I have not set any condition yet whether it should run UserTask2 or UserTask3 during design phase. Once i start the workflow and execute the UserTask1, <blockcode>can we programmatically decide run UserTask2 or run UserTask3 ? </blockcode>

After that i can make task complete , and it will continue execution with UserTask4.



Regards,
Chandan

Outcomes