cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any connection or link between Id's of Parent and Child process in relation to DB?

megha_jain2
Champ in-the-making
Champ in-the-making

Hi,

Do we have any connection/ relation of Id’s related to DB between one parent process and child process (which we are calling using ‘Call Activity’) .

If, there is anything, how can we link or use them through Activiti API? Also, is it possible to utilize variables from parent process execution context in child process?

Any reply would be appreciated!

Thanks & Regards,

Megha Jain

 

1 ACCEPTED ANSWER

warper
Star Contributor
Star Contributor
There are 2 possible connections - super execution (execution.getSuperExecution()) and parent execution (execution.getParent()).
Both are stored in ACT_RU_EXECUTION table in DB  (SUPER_EXEC_ and PARENT_ID_).
I think you need parent execution for call activity case.

You can read and set variables of parent process in java deleagates like this:

Object variable = execution.getParent().getVariable("variableName");

View answer in original post

2 REPLIES 2

warper
Star Contributor
Star Contributor
There are 2 possible connections - super execution (execution.getSuperExecution()) and parent execution (execution.getParent()).
Both are stored in ACT_RU_EXECUTION table in DB  (SUPER_EXEC_ and PARENT_ID_).
I think you need parent execution for call activity case.

You can read and set variables of parent process in java deleagates like this:

Object variable = execution.getParent().getVariable("variableName");

megha_jain2
Champ in-the-making
Champ in-the-making

Thanks Warper!