[jboss-user] [jBPM] - Re: can subprocess get its father process's parameter?
Demian Calcaprina
do-not-reply at jboss.com
Fri Aug 9 16:14:44 EDT 2013
Demian Calcaprina [https://community.jboss.org/people/calca] created the discussion
"Re: can subprocess get its father process's parameter?"
To view the discussion, visit: https://community.jboss.org/message/832172#832172
--------------------------------------------------------------
You can also do it.
Starting from jbpm 5.4, you have the parent process id in audit tables:
https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-bam/src/main/java/org/jbpm/process/audit/ProcessInstanceLog.java#L53 https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-bam/src/main/java/org/jbpm/process/audit/ProcessInstanceLog.java#L53
At runtime, the processInstanceImpl class has the parent it in the metadata too, which is put when starting the subprocess
https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/SubProcessNodeInstance.java#L141 https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-flow/src/main/java/org/jbpm/workflow/instance/node/SubProcessNodeInstance.java#L141
I think you should use the first option, but it depends on what you are trying to achieve.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/832172#832172]
Start a new discussion in jBPM at Community
[https://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/20130809/1b40cd95/attachment.html
More information about the jboss-user
mailing list