Skip to main content

Enumeration: WorkflowIdReusePolicy

common.WorkflowIdReusePolicy

Concept: Workflow Id Reuse Policy

Whether a Workflow can be started with a Workflow Id of a Closed Workflow.

Note: A Workflow can never be started with a Workflow Id of a Running Workflow.

Enumeration Members

WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE

WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1

The Workflow can be started if the previous Workflow is in a Closed state.

Default


WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY

WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2

The Workflow can be started if the previous Workflow is in a Closed state that is not Completed.


WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE

WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE = 3

The Workflow cannot be started.


WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING

WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING = 4

Terminate the current workflow if one is already running.


WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED

WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED = 0

No need to use this.

(If a WorkflowIdReusePolicy is set to this, or is not set at all, the default value will be used.)