Enum Class TaskStatus
- All Implemented Interfaces:
Serializable, Comparable<TaskStatus>, Constable
- 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 ConstantDescriptionCanceled — task voided by the engine (e.g. step closed by another assignee).Done — the assignee made a decision (seeTaskOutcome).Pending — awaiting handling by the assignee. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskStatusReturns the enum constant of this class with the specified name.static TaskStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
Pending — awaiting handling by the assignee. 待处理 —— 等待 assignee 处理。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
DONE
Done — the assignee made a decision (seeTaskOutcome). 已处理 —— assignee 已作出决定(详见TaskOutcome)。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
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
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
-