Rachel Hodos [
http://community.jboss.org/people/rhodos] replied to the discussion
"Subprocess transition in a fork is not working"
To view the discussion, visit:
http://community.jboss.org/message/546920#546920
--------------------------------------------------------------
Maciej Swiderski wrote:
Since you made a signal on the subprocess, this will alter the super process as well so
you need to look up the process instance once again.
processInstance = executionService.findProcessInstanceById(processInstance.getId());
When you inspect newly loaded process instance you will get correct info.
The same rule applies to getting information about subprocess state. You are checking out
of date process instance. Use execution instance returned by signal method.
This is
sort of a tangent, so maybe it should be posted in a separate thread, but I'm just
curious why the processInstance needs to be 'refreshed' like this?
Thanks,
Rachel
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/546920#546920]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]