elguardian commented on code in PR #4023:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4023#discussion_r2275735693


##########
jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/LightWorkItemManager.java:
##########
@@ -146,6 +146,7 @@ public void completeWorkItem(String workItemId, Map<String, 
Object> data, Policy
         KogitoProcessInstance processInstance = 
processInstanceManager.getProcessInstance(workItem.getProcessInstanceStringId());
         workItem.setState(KogitoWorkItem.COMPLETED);
         processInstance.signalEvent("workItemCompleted", workItem);
+        internalRemoveWorkItem(workItemId);

Review Comment:
   the transition work item will take of this already if we reached the point 
of completed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to