cancel
Showing results for 
Search instead for 
Did you mean: 

Path is always taken when condition is failed

vamsinipun
Star Contributor
Star Contributor

Hi Team

I am using activiti in my spring web application.

After completion of parallel tasks, rejection path will take only when condition is true. but after completion of parallel tasks both paths are executed. please let me know how to solve this?

Thanks

2 REPLIES 2

hari
Star Contributor
Star Contributor

Hi Vamsi, 

Attach the process xml, that would enable us to look into the issue. My guess is that you have configured a condition on one sequence flow and have not configured any condition on the other flow. Hence when one flow's condition is true, both the paths are executed. And if one is false, only one flow was executed where there is no condition configured. 

To solve your issue, you must configure a condition on both the flows. 

cjose
Elite Collaborator
Elite Collaborator

You may want to use an inclusive gateway while merging. When you use an inclusive gateway, if there are conditions, it will respect the conditions you have on the sequence.