AnsweredAssumed Answered

How to terminate called workflow(from serviceTask) when calling workinglow terminated?

Question asked by swamy2156 on Nov 3, 2015
Latest reply on Nov 3, 2015 by swamy2156

I am facing a tricky problem with my workflows. I developed a generic notification workflow to trigger notification mails if task is not owned by any one of userGroup since task get created, which I can be integrate in any of the workflow(A boundary timer on UserTask which connects to a serviceTask. In serviceTask by calling API runtimeService.startProcessInstanceByKey("notification-process", map) ).

Now thing is that, when calling process instance got terminated according to flow, this notification process instance still persists and trying to invoke notifications though task get closed.
Is there a way to delete notification process instance when calling process instance got terminated(or) task got completed?

(Attached workflow bpmn modal for reference)