I use activiti and the ReceiveTask composant (https://www.activiti.org/userguide/#bpmnReceiveTask) on a project and I would like to handle messages (triggered by signals) sequentially (one by one).
The behaviour I expect is :
1- Create Process
2- Go to ReceiveTask and waiting
4- Do Stuff
5- Go back to ReceiveTask and waiting
But if another signal is triggered during step 4, a second process is created in parallel, and an OptimisticLock exception logically happens.
You can find a Java test in the zip archive receivetask.zip, I have used threads to represent signals emit in paralell.
I have read the user guide entirely but I have not found how to manage signals sequentially, can you help me and give me advices ?
Java Developer at Nantes (France)