Package cloud.opencode.base.flow.operation


package cloud.opencode.base.flow.operation
Seven approval operation handlers (approve / vote / reject / addSign / withdraw / transfer / circulate). 7 个审批动作处理器(同意 / 投票 / 驳回 / 加签 / 撤回 / 转办 / 抄送)。
Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Classes
    Class
    Description
    Add-sign action — appends additional approvers to the current step (v4 §8.5).
    Approve action — marks the caller's task DONE+APPROVED, evaluates the step and either advances the instance (next step / END) or stays put for further approvals (v4 §8.2 / §8.3).
    Circulate (read-only notification) action — appends a history row and publishes a TaskCirculatedEvent; does not affect the workflow state (v4 §8.8).
    Reject action — v4 §8.4: targetStepId = "_INITIATOR_" → rollback to steps[0], cancel pending tasks, re-enter step 0 targetStepId = null → go to the previous approve/vote step inferred from history otherwise → must be a step id visited in history; jump there 驳回操作 —— 详见 v4 §8.4。
    Transfer action — changes the assignee of a PENDING task (v4 §8.7).
    Vote action — records the user's vote, marks task DONE+APPROVED (i.e.
    Withdraw action (v4 §8.6).