Enum Class FlowStatus

java.lang.Object
java.lang.Enum<FlowStatus>
cloud.opencode.base.flow.model.FlowStatus
All Implemented Interfaces:
Serializable, Comparable<FlowStatus>, Constable

public enum FlowStatus extends Enum<FlowStatus>
Lifecycle status of a FlowDefinition. FlowDefinition 的生命周期状态。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Enum Constant Details

    • DRAFT

      public static final FlowStatus DRAFT
      Draft — uploaded but not yet activated. 草稿 —— 已上传但尚未激活。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • ACTIVE

      public static final FlowStatus ACTIVE
      Active — may be used to start new instances. 启用中 —— 可用于启动新实例。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • DEPRECATED

      public static final FlowStatus DEPRECATED
      Deprecated — existing instances continue, but no new instance may start. 已弃用 —— 现有实例继续,禁止启动新实例。
      Since:
      JDK 25, opencode-base-flow V1.0.5
  • Method Details

    • values

      public static FlowStatus[] 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

      public static FlowStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null