Sporadic Issue in BPMN Workflow

18 views
Skip to first unread message

Maria Prabudass

unread,
Oct 8, 2024, 3:09:37 AM10/8/24
to jBPM Development

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:

  • The task is completed successfully, but the next node is sometimes not triggered.
  • This issue occurs sporadically; it works correctly most of the time but fails under certain conditions.
  • The problem is specific to a particular user task in the BPMN process.
  • No errors or exceptions are raised when completing the task.
  • The issue arises more frequently when tasks are rapidly created and completed within the same process instance.

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

Richard Bourner

unread,
Oct 8, 2024, 1:13:14 PM10/8/24
to jBPM Development
This is not going to fix your issue, but you should be using a more recent version of jBPM. Version 5 is very old.
Reply all
Reply to author
Forward
0 new messages