Boundary signal event is listening for signal being raised not only within the process instance itself but from other process instances as well
Issue
-
It has been observed in
BPMS 6.0.x
that boundary signal event is listening for signal being raised not only within the process instance itself but from other process instances as well. It is causing a single event thrown from one process instance is getting caught and acted by other process instances too, causing weird application behaviour as captured below. Is it a Bug? What kind of preventive measures can be taken to stop this behaviour? Here is a scenario described with respect to this problem which was also captured in this Bugzilla [1] . -
Say, there are two process definitions, (1)
ParentCallerProcess.bpmn2
and (2)EmbeddedSubProcessTest.bpmn2
. - The
ParentCallerProcess
contains the following flow.
Start -> ReUsableSubProcess [calledElement: project1.EmbeddedSubProcessTest] -> End
- Now the other
EmbeddedSubProcessTest
has the following process flow where theEmbedded Sub-Process
contains aUser Task
, and aThrow Intermediate Signal Event
, and at the boundary of thisEmbedded Sub-Process
user is catching the signal thrown from the internal signal event.
Start -> [ Embedded Sub-Process ](boundary, Catch Intermediate Signal Event, signal ref: SignalOne) -> End
- This is how the internal flow of the
Embedded Sub-Process
looks like.
Start -> User Task [name: UserOne] -> [Throw Intermediate Signal Event, signal ref: SignalOne ] -> End
- If multiple process instances are started for
ParentCallerProcess
, then in this kind of process flow a signal triggered for a boundary catch event on a single instance of embedded sub-process signals other instances too. i.e. after starting two process instances ofParentCallerProcess
orEmbeddedSubProcessTest
, it can be seen that two tasks are created. However, if user completes just one task the other one suddenly vanishes from the task menu.
Environment
- Red Hat JBoss BPM Suite (BPMS)
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.