martinweiler commented on code in PR #4334:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/4334#discussion_r3624065030
##########
jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/EscalationEventTest.java:
##########
@@ -253,8 +262,11 @@ public void
testInterruptingEscalationBoundaryEventOnTask() throws Exception {
workItem = workItems.get(1);
}
-
kruntime.getKogitoWorkItemManager().completeWorkItem(workItem.getStringId(),
Collections.emptyMap(), SecurityPolicy.of("john", Collections.emptyList()));
- assertProcessInstanceFinished(processInstance, kruntime);
+ // completing john's task throws escalation which interrupts mary's
UserTask via boundary event
+ ProcessTestHelper.completeWorkItem(processInstance,
Collections.emptyMap(), "john");
+ // mary's task is interrupted by the boundary event, completing
remaining work item
Review Comment:
Similar to the above test, I don't think it should be required to manually
complete mary's task that has the escalation event.
--
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]