Enum Class StepType

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

public enum StepType extends Enum<StepType>
Step (node) type. 流程节点类型。

This module does not provide explicit start or gateway nodes — steps[0] is implicitly the entry point (v4 §4.2).

本模块不提供显式 start 节点和网关;steps[0] 隐式为起点(v4 §4.2)。

Since:
JDK 25, opencode-base-flow V1.0.5
Author:
Leon Soo
  • Enum Constant Details

    • APPROVE

      public static final StepType APPROVE
      Approve step: one or more approvers, gated by mode. 同意节点:一个或多个审批人,由 mode 决定通过条件。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • VOTE

      public static final StepType VOTE
      Vote step: multiple voters, gated by Strategy. 举手节点:多人投票,由 Strategy 决定通过条件。
      Since:
      JDK 25, opencode-base-flow V1.0.5
    • END

      public static final StepType END
      End step: instance is set to InstanceStatus.COMPLETED. 结束节点:实例置为 InstanceStatus.COMPLETED。
      Since:
      JDK 25, opencode-base-flow V1.0.5
  • Method Details

    • values

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