[New] Added Controller.toStopped(StrolchTransaction, Action) as a public method

This commit is contained in:
Robert von Burg 2023-04-25 13:52:53 +02:00
parent 9eb10b860b
commit d2df7b753a
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 3 additions and 3 deletions

View File

@ -319,7 +319,7 @@ public class Controller {
return;
Action action = this.activity.getElementByLocator(actionLoc);
internalToStopped(tx, action);
toStopped(tx, action);
tx.commitOnClose();
}
@ -341,10 +341,10 @@ public class Controller {
if (!refreshActivity(tx))
throw new IllegalStateException("Activity " + actionLoc.trim(3) + " does not exist anymore!");
Action action = this.activity.getElementByLocator(actionLoc);
internalToStopped(tx, action);
toStopped(tx, action);
}
protected void internalToStopped(StrolchTransaction tx, Action action) {
public void toStopped(StrolchTransaction tx, Action action) {
SetActionToStoppedCommand command = new SetActionToStoppedCommand(tx);
command.setExecutionPolicy(refreshExecutionPolicy(tx, action));
command.setAction(action);