ActivitiOptimisticLockingException thrown on CallActivity with Async serviceTask and Multi-Instance construct.

Description

When using (sync or async) CallActivity containing Async serviceTasks with Multi-Instance (isSequential="false"), often there is an ActivitiOptimisticLockingException thrown after the last iteration of the Multi-Instance.

While - as a workaround - an interceptor and a try-catch block can trap the exception in the main thread, it is no panacea.

There is both a unit test and a standalone test submitted in the test case - to ensure that the default "JobExecutor" setting is not the culprit.

Note: May be the cause in forum issue http://forums.activiti.org/en/viewtopic.php?f=6&t=2635 as well.

Environment

None

Assignee

Daniel Meyer (camunda)

Reporter

Sid Askary

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure