Community

SubProcess signaling issue

reply from Maciej Swiderski in jBPM Development - View the full discussion

It looks like we are talking about two different things ;)

 

What I am trying to say is that I would like to ensure that signalExecutionById(mainProcessId) will not signal running but not yet finished sub process. At the moment when your process has a sub process in a wait state and you signal as above then will signal sub process activity regardless of the state it currently is. Result of it will be:

- main process will move on

- sub process will be left unfinished - end method will not be invoked and this execution will not be deleted

 

My suggestion is to prevent of signaling sub process activity when it is running. You don't need to fetch it from db since when signal method is executed you have access to both main and sub process instances.

Will attach a patch today to jira.

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community