Path is always taken when condition is failed

cancel
Showing results for 
Search instead for 
Did you mean: 
vamsinipun
Established Member

Path is always taken when condition is failed

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
hari
Established Member

Re: Path is always taken when condition is failed

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
Senior Member II

Re: Path is always taken when condition is failed

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.