AnsweredAssumed Answered

FormService.submitStartFormData thread safety issue

Question asked by kaech on Jan 12, 2013
Latest reply on Jan 16, 2013 by kaech

We are developing an application in which many processes are started from multiple threads in parallel via FormService.submitStartFormData().
We start different processes with different sets of form properties.
Somtimes it happens that submitStartFormData starts the wrong process. The result is that the process gets the wrong properties which causes the process to fail. The more processes we start in parallel, the more threads we have. This increases the likeliness of the issue.
When we sychronize the call to processInstance.start in org.activiti.engine.impl.cmd.SubmitStartFormCmd.execute it works without problems.
Like this:


It seems that ExecutionEntity.start is not thread safe.
Is that true?