[jboss-user] [jBPM] - Subprocess transition in a fork is not working
Rachel Hodos
do-not-reply at jboss.com
Tue Jun 8 20:51:51 EDT 2010
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&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100608/7a5b04ec/attachment.html
More information about the jboss-user
mailing list