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
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to