Enum Class FlowStatus
- All Implemented Interfaces:
Serializable, Comparable<FlowStatus>, Constable
Lifecycle status of a
FlowDefinition.
FlowDefinition 的生命周期状态。- 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 ConstantDescriptionActive — may be used to start new instances.Deprecated — existing instances continue, but no new instance may start.Draft — uploaded but not yet activated. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowStatusReturns the enum constant of this class with the specified name.static FlowStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAFT
Draft — uploaded but not yet activated. 草稿 —— 已上传但尚未激活。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
ACTIVE
Active — may be used to start new instances. 启用中 —— 可用于启动新实例。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
DEPRECATED
Deprecated — existing instances continue, but no new instance may start. 已弃用 —— 现有实例继续,禁止启动新实例。- 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
-