Closed denelvis closed 1 year ago
When first user task is signaled the engine will wait for the sub process to complete. getPostponed
will return the sub process, and the postponed sub process api has another getPostponed
function that will return the sub process postponed children.
const [ subProcessApi ] = engine.getPostponed();
const postponedInSubprocess = subProcessApi.getPostponed();
console.log(postponedInSubprocess);
For some reason the subProcessApi.getPostponed()
also returns the sub process it self. So you will have to filter the result for the tasks in question.
Check the referenced test for inspiration.
Hello. I have a simple scheme as below. One usertask, next a subprocess with two usertasks and then last user task. When I executed first user task, I try to get next waiting task using .getPostponed() method and this method return subprocess task to me and I can't execute it. How to get nested user tasks of subprocess and execute them?