Package io.temporal.client
Class WorkflowExecutionAlreadyStarted
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.temporal.failure.TemporalException
-
- io.temporal.client.WorkflowException
-
- io.temporal.client.WorkflowExecutionAlreadyStarted
-
- All Implemented Interfaces:
java.io.Serializable
public final class WorkflowExecutionAlreadyStarted 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.WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE
.-
There is successfully closed workflow with the same ID and the
WorkflowOptions.getWorkflowIdReusePolicy()
isWorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY
.-
Method annotated with
WorkflowMethod
is called more than once on a stub created throughWorkflow.newChildWorkflowStub(Class)
and theWorkflowOptions.getWorkflowIdReusePolicy()
isWorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowExecutionAlreadyStarted(io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType, java.lang.Throwable cause)
-
Method Summary
-
Methods inherited from class io.temporal.client.WorkflowException
getExecution, getMessage, getWorkflowType
-
-