Enum Class Action

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

public enum Action extends Enum<Action>
Action types recorded in HistoryRecord. 写入 HistoryRecord 的动作类型枚举。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Enum Constant Details

    • START

      public static final Action START
      Instance started. 实例启动。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • COMPLETE

      public static final Action COMPLETE
      Instance completed (reached an end step). 实例完成(到达 end 节点)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • APPROVE

      public static final Action APPROVE
      Approver agreed. 审批人同意。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • VOTE

      public static final Action VOTE
      Voter cast a vote (AGREE / DISAGREE). 投票人投票(赞成 / 反对)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • REJECT

      public static final Action REJECT
      Reject — either back to previous step, initiator, or a named step. 驳回 —— 回上一级 / 起草人 / 指定步骤。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • ADD_SIGN

      public static final Action ADD_SIGN
      Add additional approvers (after-sign). 后加签。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • WITHDRAW

      public static final Action WITHDRAW
      Initiator withdrew the running instance. 发起人撤回运行中的实例。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • TRANSFER

      public static final Action TRANSFER
      Task transferred to another user. 任务转办给他人。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • CIRCULATE

      public static final Action CIRCULATE
      Circulate (read-only notification, no decision). 传阅(仅通知,不影响流转)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • TERMINATE

      public static final Action TERMINATE
      Instance terminated out-of-band by an operator. 实例被运维方外部强制终止。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • CANCEL

      public static final Action CANCEL
      Cancellation marker (e.g. orphan task wiped after reject). 取消标记(如驳回后清扫的孤儿任务)。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • DONE_VOIDED

      public static final Action 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

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