[jBPM] - Re: can subprocess get its father process's parameter?
Demian Calcaprina <[email protected]> Fri, 09 Aug 2013 16:14:44 -0400
| Newsgroups | gmane.comp.java.jboss.user |
|---|---|
| Message-ID | <[email protected]> |
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] _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user