[Fix] Added trigger after calling SetActionStateService

This commit is contained in:
Robert von Burg 2019-10-21 16:58:53 +02:00
parent 99c0634b75
commit 60c57efc28
1 changed files with 5 additions and 0 deletions

View File

@ -33,7 +33,9 @@ public class SetActionStateService extends AbstractService<StringMapArgument, Se
State state = State.parse(arg.map.get("state"));
Locator locator = Locator.valueOf(arg.map.get("locator"));
String realm;
try (StrolchTransaction tx = openArgOrUserTx(arg)) {
realm = tx.getRealmName();
Action action = tx.findElement(locator);
@ -134,6 +136,9 @@ public class SetActionStateService extends AbstractService<StringMapArgument, Se
tx.commitOnClose();
}
ExecutionHandler executionHandler = getContainer().getComponent(ExecutionHandler.class);
executionHandler.triggerExecution(realm);
return ServiceResult.success();
}
}