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:
Serializable
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() is WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE.
-
There is successfully closed workflow with the same ID and the
WorkflowOptions.getWorkflowIdReusePolicy() is WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY.
-
Method annotated with
WorkflowMethod is called more than
once on a stub created through Workflow.newChildWorkflowStub(Class) and the WorkflowOptions.getWorkflowIdReusePolicy() is WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowExecutionAlreadyStarted(io.temporal.api.common.v1.WorkflowExecution execution, String workflowType, Throwable cause) -
Method Summary
Methods inherited from class io.temporal.client.WorkflowException
getExecution, getWorkflowTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WorkflowExecutionAlreadyStarted
-