Enum GraphNode.State
- java.lang.Object
-
- java.lang.Enum<GraphNode.State>
-
- org.nuxeo.ecm.platform.routing.core.impl.GraphNode.State
-
- All Implemented Interfaces:
Serializable
,Comparable<GraphNode.State>
- Enclosing interface:
- GraphNode
public static enum GraphNode.State extends Enum<GraphNode.State>
The internal state of a node.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description READY
Node is ready.RUNNING_INPUT
While executing input phase.RUNNING_OUTPUT
While executing output phase.SUSPENDED
Task node is waiting for task to be done.WAITING
Merge node is waiting for more incoming transitions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GraphNode.State
fromString(String s)
String
getLifeCycleState()
Corresponding lifecycle state.String
getTransition()
Transition leading to this state.static GraphNode.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static GraphNode.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READY
public static final GraphNode.State READY
Node is ready.
-
WAITING
public static final GraphNode.State WAITING
Merge node is waiting for more incoming transitions.
-
RUNNING_INPUT
public static final GraphNode.State RUNNING_INPUT
While executing input phase. Not persisted.
-
SUSPENDED
public static final GraphNode.State SUSPENDED
Task node is waiting for task to be done.
-
RUNNING_OUTPUT
public static final GraphNode.State RUNNING_OUTPUT
While executing output phase. Not persisted.
-
-
Method Detail
-
values
public static GraphNode.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GraphNode.State c : GraphNode.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GraphNode.State valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLifeCycleState
public String getLifeCycleState()
Corresponding lifecycle state.
-
getTransition
public String getTransition()
Transition leading to this state.
-
fromString
public static GraphNode.State fromString(String s)
-
-