WorkflowIdConflictPolicy
: int
in package
Defines what to do when trying to start a workflow with the same workflow id as a *running* workflow.
Note that it is never valid to have two actively running instances of the same workflow id.
Tags
Table of Contents
Cases
- Fail = 1
- Don't start a new workflow; instead return `WorkflowExecutionAlreadyStartedFailure`.
- TerminateExisting = 3
- Terminate the running workflow before starting a new one.
- Unspecified
- UseExisting = 2
- Don't start a new workflow; instead return a workflow handle for the running workflow.
Cases
Unspecified
Fail
Don't start a new workflow; instead return `WorkflowExecutionAlreadyStartedFailure`.
UseExisting
Don't start a new workflow; instead return a workflow handle for the running workflow.
TerminateExisting
Terminate the running workflow before starting a new one.