AnsweredAssumed Answered

How to read taskEntity Id from service task(Espicially in parallel flow)?

Question asked by swamy2156 on May 26, 2014
Latest reply on May 27, 2014 by swamy2156

In my workflow at some point, there is a parallel flow. Each leg, userTask will be created and using boundery timer on each task, firing a service task to send mail notification with taskId. I can see there is an api call to get taskIds from execution as follows.
List<Task> tasks = taskService.createTaskQuery().processInstanceId(processInstanceId).active().list();

But, its a parallel flow and each task has its own service task and hence 2 notifications for each task and in total 4 notification mails getting fired. Is there a way to know the taskId of current execution?