Enum Class Action
- All Implemented Interfaces:
Serializable, Comparable<Action>, Constable
Action types recorded in
HistoryRecord.
写入 HistoryRecord 的动作类型枚举。- 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 ConstantDescriptionAdd additional approvers (after-sign).Approver agreed.Cancellation marker (e.g. orphan task wiped after reject).Circulate (read-only notification, no decision).Instance completed (reached an end step).Marks a DONE task voided by a loose-policy withdraw.Reject — either back to previous step, initiator, or a named step.Instance started.Instance terminated out-of-band by an operator.Task transferred to another user.Voter cast a vote (AGREE / DISAGREE).Initiator withdrew the running instance. -
Method Summary
-
Enum Constant Details
-
START
-
COMPLETE
Instance completed (reached an end step). 实例完成(到达 end 节点)。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
APPROVE
-
VOTE
Voter cast a vote (AGREE / DISAGREE). 投票人投票(赞成 / 反对)。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
REJECT
Reject — either back to previous step, initiator, or a named step. 驳回 —— 回上一级 / 起草人 / 指定步骤。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
ADD_SIGN
Add additional approvers (after-sign). 后加签。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
WITHDRAW
Initiator withdrew the running instance. 发起人撤回运行中的实例。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
TRANSFER
Task transferred to another user. 任务转办给他人。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
CIRCULATE
Circulate (read-only notification, no decision). 传阅(仅通知,不影响流转)。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
TERMINATE
Instance terminated out-of-band by an operator. 实例被运维方外部强制终止。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
CANCEL
Cancellation marker (e.g. orphan task wiped after reject). 取消标记(如驳回后清扫的孤儿任务)。- Since:
- JDK 25, opencode-base-flow V1.0.5
-
DONE_VOIDED
Marks a DONE task voided by a loose-policy withdraw. 标记 loose 撤回作废的已审任务。- 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
-