AnsweredAssumed Answered

Exclusive Join

Question asked by yangyang.qian on Dec 30, 2010
Latest reply on Jan 3, 2011 by jbarrez
I don't suppose there's a way in the current Activiti Designer to have a Gateway in which many executions can come in, but only the first that arrives goes out … the others are discarded / cancelled

best explained here I think …

I've tried using an ExclusiveGateway but couldn't seem to get it to work .. not sure if I'm doing it correctly though.

Right now I'm attempting a slight kludgy work-around. Say I have two concurrent UserTasks A & B, only one of which needs to complete before it moves onto a third UserTask C. When either A or B completes, execution goes to a ServiceTask that cancels the other parallel UserTask via an API call and then moves onto UserTask C