01-16-2017 01:26 AM
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
01-16-2017 06:20 AM
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");
01-16-2017 06:20 AM
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");
01-17-2017 05:21 AM
Thanks Warper!
Explore our Alfresco products with the links below. Use labels to filter content by product module.