[Fix] Added trigger after calling SetActionStateService
This commit is contained in:
parent
99c0634b75
commit
60c57efc28
|
@ -33,7 +33,9 @@ public class SetActionStateService extends AbstractService<StringMapArgument, Se
|
||||||
State state = State.parse(arg.map.get("state"));
|
State state = State.parse(arg.map.get("state"));
|
||||||
Locator locator = Locator.valueOf(arg.map.get("locator"));
|
Locator locator = Locator.valueOf(arg.map.get("locator"));
|
||||||
|
|
||||||
|
String realm;
|
||||||
try (StrolchTransaction tx = openArgOrUserTx(arg)) {
|
try (StrolchTransaction tx = openArgOrUserTx(arg)) {
|
||||||
|
realm = tx.getRealmName();
|
||||||
|
|
||||||
Action action = tx.findElement(locator);
|
Action action = tx.findElement(locator);
|
||||||
|
|
||||||
|
@ -134,6 +136,9 @@ public class SetActionStateService extends AbstractService<StringMapArgument, Se
|
||||||
tx.commitOnClose();
|
tx.commitOnClose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ExecutionHandler executionHandler = getContainer().getComponent(ExecutionHandler.class);
|
||||||
|
executionHandler.triggerExecution(realm);
|
||||||
|
|
||||||
return ServiceResult.success();
|
return ServiceResult.success();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue