Enum Class InstanceStatus

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

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

    • RUNNING

      public static final InstanceStatus RUNNING
      Running. 运行中。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • COMPLETED

      public static final InstanceStatus COMPLETED
      Completed normally at an StepType.END step. 在 StepType.END 节点正常结束。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • TERMINATED

      public static final InstanceStatus TERMINATED
      Terminated externally. 被外部终止。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • WITHDRAWN

      public static final InstanceStatus WITHDRAWN
      Withdrawn by initiator. 由发起人撤回。
      Since:
      JDK 25, opencode-base-flow V1.0.5
  • Method Details

    • values

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