AnsweredAssumed Answered

ActivitiOptimisticLockingException on activiti 5.17

Question asked by hassanboutougha on Sep 23, 2016
Hi,
in a workflow instance, we have parallel task (by using a parallel gateway).
Those task launch long running job and are signaled by API by an external component when task is complete.
Sometime when task are updated at the same time, by activiti API we got ActivitiOptimisticLockingException
nested exception is org.activiti.engine.ActivitiOptimisticLockingException: ProcessInstance[xxxx] was updated by another transaction concurrently
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:973)
by definition, parallel gateway allows parallel tasks so Activiti should support the fact that parallel task are updated or signaled at the same time?
Should I put each parallel tasks inside a call activiti in order to update different subworfklow instance=> so I won't get this issue because signal will update different workflow instance at the same time?
Have you other solutions?
Hassan

Outcomes