Enum Class TaskOutcome

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

public enum TaskOutcome extends Enum<TaskOutcome>
Outcome of a completed Task. null when the task is still pending. 已完成 Task 的结果。任务仍处于待处理时为 null。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Enum Constant Details

    • APPROVED

      public static final TaskOutcome APPROVED
      The assignee approved (or voted AGREE). 同意(或投赞成票)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • REJECTED

      public static final TaskOutcome REJECTED
      The assignee rejected (or voted DISAGREE). 驳回(或投反对票)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • TRANSFERRED

      public static final TaskOutcome TRANSFERRED
      The task was transferred to another user. 任务被转办给他人。
      Since:
      JDK 25, opencode-base-flow V1.0.5
  • Method Details

    • values

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