Enum Class InstanceStatus
- All Implemented Interfaces:
Serializable, Comparable<InstanceStatus>, Constable
Lifecycle status of a
FlowInstance.
FlowInstance 的生命周期状态。- Since:
- JDK 25, opencode-base-flow V1.0.5
- Author:
- Leon Soo
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompleted normally at anStepType.ENDstep.Running.Terminated externally.Withdrawn by initiator. -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceStatusReturns the enum constant of this class with the specified name.static InstanceStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
-
COMPLETED
Completed normally at anStepType.ENDstep. 在StepType.END节点正常结束。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
TERMINATED
Terminated externally. 被外部终止。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
WITHDRAWN
Withdrawn by initiator. 由发起人撤回。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-