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
Solved! Go 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");
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");
Thanks Warper!
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.