Hello, We have a workflow with a multi-instance task and the multi-instance task is having between 2000 to 4000 running tasks. When we try to complete one of the task when there are thousands of multi-instance tasks running, it is taking hours to complete.
We investigated a bit and it looks like activiti is getting the parent execution and checking all the tasks present on the parent execution, probably to determine whether it should go to the next stage.
We are using the below API call.
taskService.completeTask(taskId)
The same completes quickly for single instance tasks or when there are very few tasks for the multi-instance task.
Any help in resolving this is appreciated.
Thanks,
Vamsi