AnsweredAssumed Answered

got ActivitiOptimisticLockingException when using event-based gateway

Question asked by kaisery on May 13, 2014
Activiti Version : 5.15.1

Hi there,

sorry for my poor english, but I really get some trouble here.

I have a event-based gateway with two signalintermediatecatchevent branches, each branch hava a callActivity link to a simple subprocess just print which branch have been executed. Then I start two thread to sign this two events respectively and I got ActivitiOptimisticLockingException. And I noticed the two branches execute parallely, not sequentially as i expected. Is there something wrong or I just shouldn't do it like that. If I was wrong, please tell me how can I make this two thread executing sequentially.

I have attached my bpmns and junit test that actually cause this problem.