cancel
Showing results for 
Search instead for 
Did you mean: 

Emergency need for integration: no 'parent_id', no 'super_exec' affected in table 'act_ru_execution'

mwm1
Champ in-the-making
Champ in-the-making
I need to create and execute/suspend sub process according to a specified priority in the request.

@Override
   public void execute(DelegateExecution execution) throws Exception {

for (each element in Process_List) {

ProcessInstance processInstance = runtimeService
               .startProcessInstanceByKey(sub_process, variables);
               

}

For all process started by the script  above, there is no "parent_id" or "super_exec" affected in table "act_ru_execution" while for all process created by "Call Activity" or "Sub process" the fields "parent_id" and "superexec" are filled in that table.
I am actually facing 2 issues:
- When the parent process is deleted, all child continue running.
- The parent process don't wait to the end of child process
Other solution is how can I create and instanciate in java programmatically "Call Activity" or "Sub process" ?
Because all child process created in "Call Activity" and "Sub process"  are dependant to their parent process. If the parent is deleted, all child process are deleted.
Is there anything to do in the script above to put a relation or link betweeen parent and child?
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

it seems that you want to copy call activity behaviour. Have a look into activiti source - CallActivityBehavior is good place to start.

Regards
Martin

mwm1
Champ in-the-making
Champ in-the-making
Thank you Martin 😉
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.