From 3b6411d39a68d591801ebee74d0702cd284a7092 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 6 Feb 2024 12:50:53 +0100 Subject: [PATCH] [JBPM-10198] delete correct old timer rescheduling a timer (#2336) (#2385) Co-authored-by: Alberto Fanjul Co-authored-by: Alberto Fanjul --- .../org/jbpm/process/instance/command/UpdateTimerCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jbpm-flow/src/main/java/org/jbpm/process/instance/command/UpdateTimerCommand.java b/jbpm-flow/src/main/java/org/jbpm/process/instance/command/UpdateTimerCommand.java index 4b61a9391b..38734c7a63 100644 --- a/jbpm-flow/src/main/java/org/jbpm/process/instance/command/UpdateTimerCommand.java +++ b/jbpm-flow/src/main/java/org/jbpm/process/instance/command/UpdateTimerCommand.java @@ -224,7 +224,7 @@ protected long calculateDelay(long delay, TimerInstance timer) { protected TimerInstance rescheduleTimer(TimerInstance timer, TimerManager tm) { logger.debug("Found timer {} that is going to be canceled", timer); - tm.cancelTimer(timer.getProcessInstanceId(), timer.getTimerId()); + tm.cancelTimer(timer.getProcessInstanceId(), timer.getId()); logger.debug("Timer {} canceled successfully", timer); TimerInstance newTimer = new TimerInstance();