Skip to content

Commit

Permalink
KOGITO-9659: Workflow timeout not working using external Job Service …
Browse files Browse the repository at this point in the history
…(management-addon)
  • Loading branch information
wmedvede committed Aug 3, 2023
1 parent bee53d4 commit fb3f096
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,9 @@ public void signalEvent(String type, Object event) {
}
if (timer.getId().equals(cancelTimerId)) {
logger.debug("Cancelling process instance id {} because timer {} expires ", getStringId(), cancelTimerId);
// The cancelTimer is being executed, so this id is not valid anymore. Avoid an invalid job canceling
// for it as part of the process aborting sequence.
this.cancelTimerId = null;
setState(KogitoProcessInstance.STATE_ABORTED);
return;
}
Expand Down

0 comments on commit fb3f096

Please sign in to comment.