Hi.,
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?
regards,
Swamy.