Package io.dapr.workflows.runtime
Enum WorkflowRuntimeStatus
- All Implemented Interfaces:
Serializable
,Comparable<WorkflowRuntimeStatus>
Enum describing the runtime status of a workflow.
-
Enum Constant Summary
Enum ConstantsEnum 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 type with the specified name.static WorkflowRuntimeStatus[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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.
-