[New] Added IActivityElement state helper methods
This commit is contained in:
parent
99e10e03c4
commit
988fdd4d73
|
@ -175,8 +175,33 @@ public interface IActivityElement extends StrolchElement {
|
||||||
*
|
*
|
||||||
* @return the result of the visitor being accepted
|
* @return the result of the visitor being accepted
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
<T> T accept(StrolchElementVisitor<T> visitor);
|
<T> T accept(StrolchElementVisitor<T> 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<Activity> predicate) {
|
default Activity findParent(Predicate<Activity> predicate) {
|
||||||
|
|
||||||
Activity parent = getParent();
|
Activity parent = getParent();
|
||||||
|
|
Loading…
Reference in New Issue