Skip to main content

Class: WorkflowExecutionAlreadyStartedError

common.WorkflowExecutionAlreadyStartedError

This exception is thrown in the following cases:

  • Workflow with the same Workflow Id is currently running
  • There is a closed Workflow with the same Workflow Id and the WorkflowOptions.workflowIdReusePolicy is WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE
  • There is closed Workflow in the Completed state with the same Workflow Id and the WorkflowOptions.workflowIdReusePolicy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY

Hierarchy​

Constructors​

constructor​

β€’ new WorkflowExecutionAlreadyStartedError(message, workflowId, workflowType): WorkflowExecutionAlreadyStartedError

Parameters​

NameType
messagestring
workflowIdstring
workflowTypestring

Returns​

WorkflowExecutionAlreadyStartedError

Overrides​

TemporalFailure.constructor

Properties​

cause​

β€’ Optional Readonly cause: Error

Inherited from​

TemporalFailure.cause


failure​

β€’ Optional failure: IFailure

The original failure that constructed this error.

Only present if this error was generated from an external operation.

Inherited from​

TemporalFailure.failure


message​

β€’ message: string

Inherited from​

TemporalFailure.message


name​

β€’ name: string

Inherited from​

TemporalFailure.name


stack​

β€’ Optional stack: string

Inherited from​

TemporalFailure.stack


workflowId​

β€’ Readonly workflowId: string


workflowType​

β€’ Readonly workflowType: string


prepareStackTrace​

β–ͺ Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration​

β–Έ (err, stackTraces): any

Optional override for formatting stack traces

Parameters​
NameType
errError
stackTracesCallSite[]
Returns​

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from​

TemporalFailure.prepareStackTrace


stackTraceLimit​

β–ͺ Static stackTraceLimit: number

Inherited from​

TemporalFailure.stackTraceLimit

Methods​

captureStackTrace​

β–Έ captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters​

NameType
targetObjectobject
constructorOpt?Function

Returns​

void

Inherited from​

TemporalFailure.captureStackTrace