Skip to content

Commit

Permalink
Fix testEscalationBoundaryEventInterruptsTask
Browse files Browse the repository at this point in the history
  • Loading branch information
cimbalek committed Nov 16, 2023
1 parent 6322ddd commit b27e89e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ public void testEscalationBoundaryEventInterrupting() throws Exception {
}

@Test
@Disabled("Escalation does not cancel work items yet.")
// TODO: make escalation interrupt tasks -- or look more closely at the spec to make sure that's the case?
public void testEscalationBoundaryEventInterruptsTask() throws Exception {
kruntime = createKogitoProcessRuntime("escalation/BPMN2-EscalationBoundaryEventInterrupting.bpmn2");
TestWorkItemHandler handler = new TestWorkItemHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public void internalAbortWorkItem(String id) {
KogitoWorkItemHandler handler = this.workItemHandlers.get(workItem.getName());
if (handler != null) {
handler.abortWorkItem(workItem, this);
workItem.setState(ABORTED);
} else {
workItem.setState(ABORTED);
workItems.remove(workItem.getStringId());
throw new KogitoWorkItemHandlerNotFoundException(workItem.getName());
}
Expand Down

0 comments on commit b27e89e

Please sign in to comment.