Hi,
We are experiencing an intermittent issue in our BPMN workflow using jBPM 5.4.0.Final, where the next node is not consistently created after completing a task.
Key observations:
We suspect the problem may lie in the following method. It appears that the flow does not enter the if block because the work item ID is holding the previous work-item ID of the process instance, causing the if block to be skipped and preventing the next node from being created:
Code:
org.jbpm.workflow.instance.node.WorkItemNodeInstance
public void workItemCompleted(WorkItem workItem) {
if ( workItemId == workItem.getId()
|| ( workItemId == -1 && getWorkItem().getId() == workItem.getId()) ) {
removeEventListeners();
triggerCompleted(workItem);
}
}
How can we resolve this issue?
Regards,
Maria