abhijithumbe commented on code in PR #4023:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4023#discussion_r2281334076
##########
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:
ack
##########
jbpm/jbpm-flow/src/main/java/org/jbpm/process/instance/LightWorkItemManager.java:
##########
@@ -211,10 +213,12 @@ private void transitionWorkItem(InternalKogitoWorkItem
workItem, WorkItemTransit
case COMPLETE:
workItem.setState(KogitoWorkItem.COMPLETED);
processInstance.signalEvent("workItemCompleted",
workItem);
+ internalRemoveWorkItem(workItem.getStringId());
Review Comment:
ack
--
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]