Signals can be send on ReceiveTask even when it is not waiting

Description

Hi,

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
3- Signal
4- Do Stuff
5- Go back to ReceiveTask and waiting
6- Signal
...

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 ?

Regards,
Rémi PICARD
Java Developer at Nantes (France)

Status

Assignee

Unassigned

Reporter

Rémi Picard

Labels

Components

Fix versions

Priority

Blocker
Configure