Enum Class WorkflowRuntimeStatus

java.lang.Object
java.lang.Enum<WorkflowRuntimeStatus>
io.dapr.workflows.runtime.WorkflowRuntimeStatus
All Implemented Interfaces:
Serializable, Comparable<WorkflowRuntimeStatus>, Constable

public enum WorkflowRuntimeStatus extends Enum<WorkflowRuntimeStatus>
Enum describing the runtime status of a workflow.
  • Enum Constant Details

    • RUNNING

      public static final WorkflowRuntimeStatus RUNNING
      The workflow started running.
    • COMPLETED

      public static final WorkflowRuntimeStatus COMPLETED
      The workflow completed normally.
    • CONTINUED_AS_NEW

      public static final WorkflowRuntimeStatus CONTINUED_AS_NEW
      The workflow is continued as new.
    • FAILED

      public static final WorkflowRuntimeStatus FAILED
      The workflow completed with an unhandled exception.
    • CANCELED

      public static final WorkflowRuntimeStatus CANCELED
      The workflow was abruptly cancelled via a management API call.
    • TERMINATED

      public static final WorkflowRuntimeStatus TERMINATED
      The workflow was abruptly terminated via a management API call.
    • PENDING

      public static final WorkflowRuntimeStatus PENDING
      The workflow was scheduled but hasn't started running.
    • SUSPENDED

      public static final WorkflowRuntimeStatus SUSPENDED
      The workflow was suspended.
  • Method Details

    • values

      public static WorkflowRuntimeStatus[] 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 WorkflowRuntimeStatus 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
    • fromOrchestrationRuntimeStatus

      public static WorkflowRuntimeStatus fromOrchestrationRuntimeStatus(com.microsoft.durabletask.OrchestrationRuntimeStatus status)
      Convert runtime OrchestrationRuntimeStatus to WorkflowRuntimeStatus.
      Parameters:
      status - The OrchestrationRuntimeStatus to convert to WorkflowRuntimeStatus.
      Returns:
      The runtime status of the workflow.
    • toOrchestrationRuntimeStatus

      public static com.microsoft.durabletask.OrchestrationRuntimeStatus toOrchestrationRuntimeStatus(WorkflowRuntimeStatus status)
      Convert runtime WorkflowRuntimeStatus to OrchestrationRuntimeStatus.
      Parameters:
      status - The OrchestrationRuntimeStatus to convert to WorkflowRuntimeStatus.
      Returns:
      The runtime status of the Orchestration.
    • toOrchestrationRuntimeStatus

      public static List<com.microsoft.durabletask.OrchestrationRuntimeStatus> toOrchestrationRuntimeStatus(List<WorkflowRuntimeStatus> statuses)
      Convert runtime WorkflowRuntimeStatus to OrchestrationRuntimeStatus.
      Parameters:
      statuses - The list of orchestrationRuntimeStatus to convert to a list of WorkflowRuntimeStatuses.
      Returns:
      The list runtime status of the Orchestration.