Enum Class FlowStatus

java.lang.Object
java.lang.Enum<FlowStatus>
io.superdurable.dex.FlowStatus
All Implemented Interfaces:
Serializable, Comparable<FlowStatus>, Constable

public enum FlowStatus extends Enum<FlowStatus>
Represents the lifecycle status of a Flow execution.

Use FlowInfo.getStatus() for a described Flow or FlowResult.getStatus() for a client wait or SubFlow condition result.

  • Enum Constant Details

    • RUNNING

      public static final FlowStatus RUNNING
      The Flow execution can still make progress.
    • COMPLETED

      public static final FlowStatus COMPLETED
      The Flow completed successfully.
    • FAILED

      public static final FlowStatus FAILED
      The Flow failed.
    • CANCELED

      public static final FlowStatus CANCELED
      The Flow was canceled.
    • TERMINATED

      public static final FlowStatus TERMINATED
      The Flow was forcibly terminated.
    • SERVER_SIDE_TIMEOUT_INTERNAL_ONLY

      public static final FlowStatus SERVER_SIDE_TIMEOUT_INTERNAL_ONLY
      Reserved for backend hard-timeout reporting. Applications must not depend on this status.
    • CONTINUED_AS_NEW

      public static final FlowStatus CONTINUED_AS_NEW
      The Flow continued as a new execution.
  • Method Details

    • values

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