cancel
Showing results for 
Search instead for 
Did you mean: 

Receive Task and intermediate Timer strange behavior

meditel
Champ in-the-making
Champ in-the-making
Hi,

I have a process with 'AND gateway' + 'intermediate Timer' + 'Receive task' like this :

& gw -> timer -> script task (prints out "toto" ) -> end
& gw -> receive task -> script task (prints out "titi" ) -> end

The timer is waiting 10 sec, and the receive task is waiting for a signal.

After the timeout (10sec) i see "toto" in Activiti logs, this means that the process has ended, but i can see also that the receive task is still waiting for a signal !

Correct me if i am wrong, i thought that if one of the end events is executed then the whole process will finish.
I mean that the process will finish if a signal is received OR the timer expires.

Best regards,
Meditel
3 REPLIES 3

trademak
Star Contributor
Star Contributor
No, if you have a parallel gateway it starts two process executions.
This means that if "toto" is printed only one of the executions has ended and the other is still waiting to finish in the receive task.

Best regards,

meditel
Champ in-the-making
Champ in-the-making
Hi,

So how can i accomplish this use case ? so that if one process ends the whole process ends too …

Best regards,
Meditel

jbarrez
Star Contributor
Star Contributor
The bpmn end event only ends the current path of execution.