I have implemented FlowableEventListener interface, which listens for FlowableEngineEventType.TASK_ASSIGNED event.
The flow goes as follows:
- Launch above process
- Complete Task1 (using TaskService.complete(String taskId) API)
- Receive TASK_ASSIGNED event for parallel assignees in Task2 and Task5
Problem: I start receiving TASK_ASSIGNED events for assignees of Task2 and Task5 before receiving the response of complete API call in 2nd step.
Instead I should start receiving the assign events for next task once the current task is all completed.
Is this as per design or this a bug that next tasks starts getting assigned before completing the current task?