[Minor] Don't warn can't execute in execution action

This commit is contained in:
Robert von Burg 2023-07-24 13:33:26 +02:00
parent 16d56e0b4f
commit 4913eb9737
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package li.strolch.execution.command;
import static li.strolch.model.State.EXECUTION;
import static li.strolch.model.StrolchModelConstants.PolicyConstants.PARAM_ATOMIC_PARALLEL_EXECUTION;
import java.util.Iterator;
@ -72,7 +73,7 @@ public class PlanAndExecuteActivityCommand extends BasePlanningAndExecutionComma
private void executeAction(Action action) {
State currentState = action.getState();
if (currentState.compareTo(State.EXECUTED) >= 0)
if (currentState.compareTo(State.EXECUTED) >= 0 || currentState == EXECUTION)
return;
if (currentState == State.CREATED || currentState == State.PLANNING)
throw new IllegalStateException("Action " + action.getLocator() + " is in illegal state " + currentState);