diff --git a/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java b/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java index b4f385f49..94b542043 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java +++ b/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java @@ -175,8 +175,33 @@ public interface IActivityElement extends StrolchElement { * * @return the result of the visitor being accepted */ + @Override T accept(StrolchElementVisitor visitor); + default boolean inCreatedPhase() { + return getState().inCreatedPhase(); + } + + default boolean inPlanningPhase() { + return getState().inPlanningPhase(); + } + + default boolean inExecutionPhase() { + return getState().inExecutionPhase(); + } + + default boolean inErrorPhase() { + return getState().inErrorPhase(); + } + + default boolean inExecutionWarningPhase() { + return getState().inExecutionWarningPhase(); + } + + default boolean inClosedPhase() { + return getState().inClosedPhase(); + } + default Activity findParent(Predicate predicate) { Activity parent = getParent();