Maciej Swiderski [
http://community.jboss.org/people/swiderski.maciej] replied to the
discussion
"Subprocess wait state signal handling not working from parent process (jBPM
4.3)"
To view the discussion, visit:
http://community.jboss.org/message/544933#544933
--------------------------------------------------------------
Hi,
In general, you need to signal sub process execution using its id instead of signaling
main process. Unfortunately there is no API way to get hold of sub process instance but
you can do this casting to ExecutionImpl:
((ExecutionImpl)processInstance).getSubProcessInstance()
Then use this process instance when signaling. You can find working example in
attachment.
BTW, next time please attach your complete process definition with all custom classes (for
custom activity, event listeners, etc) and a test case. Will make it easier and faster for
others to look into your case.
P.S.
Will create issue in jira to provide a way to get hold of sub process instance.
HTH
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/544933#544933]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]