Package org.jboss.elemento.flow
Enum FlowStatus
- java.lang.Object
-
- java.lang.Enum<FlowStatus>
-
- org.jboss.elemento.flow.FlowStatus
-
- All Implemented Interfaces:
Serializable,Comparable<FlowStatus>
public enum FlowStatus extends Enum<FlowStatus>
Enum for the execution status of a flow method.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILUREThe execution failed.IN_PROGRESSThe execution is in progress.NOT_STARTEDThe execution has not yet started.SUCCESSThe execution was successful.TIMEOUTThe execution ran into a timeout.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static FlowStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_STARTED
public static final FlowStatus NOT_STARTED
The execution has not yet started.
-
IN_PROGRESS
public static final FlowStatus IN_PROGRESS
The execution is in progress.
-
SUCCESS
public static final FlowStatus SUCCESS
The execution was successful.
-
TIMEOUT
public static final FlowStatus TIMEOUT
The execution ran into a timeout.
-
FAILURE
public static final FlowStatus FAILURE
The execution failed.
-
-
Method Detail
-
values
public static FlowStatus[] 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 (FlowStatus c : FlowStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlowStatus 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
-
-