AnsweredAssumed Answered

Executing subprocess single threadedly

Question asked by gsbakshi on Jun 11, 2014
Latest reply on Jun 12, 2014 by gsbakshi
Hi,

I have an Activiti process defined with one serviceTask followed by one subProcess. As I understand, when multiple users perform this process, Acitviti will create a new thread for each user request to execute the process. My issue is that I can have the serviceTask executed concurrently for each user request however the sub-process should not be executed by more than one thread at a given time i.e. if one user request has started executing the subProcess then other user requests should wait till the first request has been completed (either successfully or with exception).

I have gone through the documentation and also Activiti.in.Action.pdf but could not find anything in this regard.

Please let me know what are the possible alternatives to meet this requirement.

Thanks.

Gurpreet

Outcomes