Enum Class TaskStatus

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

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

    • PENDING

      public static final TaskStatus PENDING
      Pending — awaiting handling by the assignee. 待处理 —— 等待 assignee 处理。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • DONE

      public static final TaskStatus DONE
      Done — the assignee made a decision (see TaskOutcome). 已处理 —— assignee 已作出决定(详见 TaskOutcome)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • CANCELED

      public static final TaskStatus CANCELED
      Canceled — task voided by the engine (e.g. step closed by another assignee). 已取消 —— 任务被引擎作废(如同节点其他人已完成)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
  • Method Details

    • values

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