[Fix] SimpleExecution used wrong locator for changing states

This commit is contained in:
Robert von Burg 2023-10-27 16:32:14 +02:00
parent 0b2df5a3b4
commit 1ce5411888
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 2 deletions

View File

@ -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) {