From 1ce54118885be3c5aff8bad9c44cda959f584eeb Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Fri, 27 Oct 2023 16:32:14 +0200 Subject: [PATCH] [Fix] SimpleExecution used wrong locator for changing states --- .../java/li/strolch/execution/policy/SimpleExecution.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/li/strolch/execution/policy/SimpleExecution.java b/service/src/main/java/li/strolch/execution/policy/SimpleExecution.java index 89b408702..461f69b82 100644 --- a/service/src/main/java/li/strolch/execution/policy/SimpleExecution.java +++ b/service/src/main/java/li/strolch/execution/policy/SimpleExecution.java @@ -92,7 +92,7 @@ public class SimpleExecution extends ExecutionPolicy { protected void toWarning(LogMessage message) { cancelWarningTask(); addMessage(message); - getExecutionHandler().toWarning(this.realm, message.getLocator()); + getExecutionHandler().toWarning(this.realm, this.actionLoc); } protected void toExecuted() throws Exception { @@ -126,7 +126,7 @@ public class SimpleExecution extends ExecutionPolicy { stop(); logger.error("Action " + message.getLocator() + " failed because of: " + message.formatMessage()); addMessage(message); - getExecutionHandler().toError(this.realm, message.getLocator()); + getExecutionHandler().toError(this.realm, this.actionLoc); } protected void setActionStateWithValueChange(Action action, State execution, double value) {