Maria
Maria

Reputation: 315

Sporadic Issue in BPMN Workflow

There is a sporadic issue in the BPMN workflow running on Version "jBPM 5.4.0.Final," where the next node is not reliably created after task completion.

Here are the observations:

The issue appears to originate from the method shown below, where the flow fails to enter the if block. It seems that the "workItemId" retains the previous work-item ID of the process instance, causing the if block to be skipped and preventing the next node from being created.

Below is the code for reference

**org.jbpm.workflow.instance.node.WorkItemNodeInstance**

public void workItemCompleted(WorkItem workItem) {
        if ( workItemId == workItem.getId()
                || ( workItemId == -1 && getWorkItem().getId() == workItem.getId()) ) {
            removeEventListeners();
            triggerCompleted(workItem);
        }
}

Insights or recommendations for resolving this issue would be valuable.

Upvotes: -1

Views: 66

Answers (1)

Yeser Amer
Yeser Amer

Reputation: 315

jBMN version 5.4.0.Final was released 12 years ago, so it's very unlikely to find someone who can support you in tackling this issue. My suggestion is to update it at least to version 7.x, I would recommend considering moving to the upcoming Apache KIE 10.0.0 that holds jBMN (the latest version)

Upvotes: 2

Related Questions