Package com.uber.cadence.client
Class DuplicateWorkflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.uber.cadence.client.WorkflowException
-
- com.uber.cadence.client.DuplicateWorkflowException
-
- All Implemented Interfaces:
java.io.Serializable
public final class DuplicateWorkflowException extends WorkflowException
This exception is thrown in the following cases:-
Workflow with the same WorkflowID is currently running.
-
There is a closed workflow with the same ID and the
WorkflowOptions.getWorkflowIdReusePolicy()
isWorkflowIdReusePolicy.RejectDuplicate
.-
There is successfully closed workflow with the same ID and the
WorkflowOptions.getWorkflowIdReusePolicy()
isWorkflowIdReusePolicy.AllowDuplicateFailedOnly
.-
Method annotated with
WorkflowMethod
is called more than once on a stub created throughWorkflow.newChildWorkflowStub(Class)
and theWorkflowOptions.getWorkflowIdReusePolicy()
isWorkflowIdReusePolicy.AllowDuplicate
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateWorkflowException(WorkflowExecution execution, java.lang.String workflowType, java.lang.String message)
-
Method Summary
-
Methods inherited from class com.uber.cadence.client.WorkflowException
getExecution, getWorkflowType
-
-
-
-
Constructor Detail
-
DuplicateWorkflowException
public DuplicateWorkflowException(WorkflowExecution execution, java.lang.String workflowType, java.lang.String message)
-
-