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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

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

Jump to solution

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 Solution

Accepted Solutions
Highlighted
Established Member II

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

Jump to solution
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 solution in original post

2 Replies
Highlighted
Established Member II

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

Jump to solution
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 solution in original post

Highlighted
Member II

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

Jump to solution

Thanks Warper!