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/...
https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-bam/src/main/java/org/...
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...
https://github.com/droolsjbpm/jbpm/blob/5.4.x/jbpm-flow/src/main/java/org...
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&...]