Package io.dapr.workflows.runtime
Enum Class WorkflowRuntimeStatus
- All Implemented Interfaces:
Serializable
,Comparable<WorkflowRuntimeStatus>
,Constable
Enum describing the runtime status of a workflow.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe workflow was abruptly cancelled via a management API call.The workflow completed normally.The workflow is continued as new.The workflow completed with an unhandled exception.The workflow was scheduled but hasn't started running.The workflow started running.The workflow was suspended.The workflow was abruptly terminated via a management API call. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkflowRuntimeStatus
fromOrchestrationRuntimeStatus
(com.microsoft.durabletask.OrchestrationRuntimeStatus status) Convert runtime OrchestrationRuntimeStatus to WorkflowRuntimeStatus.static com.microsoft.durabletask.OrchestrationRuntimeStatus
Convert runtime WorkflowRuntimeStatus to OrchestrationRuntimeStatus.static List<com.microsoft.durabletask.OrchestrationRuntimeStatus>
Convert runtime WorkflowRuntimeStatus to OrchestrationRuntimeStatus.static WorkflowRuntimeStatus
Returns the enum constant of this class with the specified name.static WorkflowRuntimeStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING
The workflow started running. -
COMPLETED
The workflow completed normally. -
CONTINUED_AS_NEW
The workflow is continued as new. -
FAILED
The workflow completed with an unhandled exception. -
CANCELED
The workflow was abruptly cancelled via a management API call. -
TERMINATED
The workflow was abruptly terminated via a management API call. -
PENDING
The workflow was scheduled but hasn't started running. -
SUSPENDED
The workflow was suspended.
-
-
Method Details
-
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
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 nameNullPointerException
- 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.
-