Interface: WorkflowHandleWithFirstExecutionRunId<T>
client.WorkflowHandleWithFirstExecutionRunId
This interface is exactly the same as WorkflowHandle except it
includes the firstExecutionRunId returned from WorkflowClient.start.
Type parameters
| Name | Type |
|---|---|
T | extends Workflow = Workflow |
Hierarchy
-
↳
WorkflowHandleWithFirstExecutionRunId
Properties
client
• Readonly client: WorkflowClient
Readonly accessor to the underlying WorkflowClient
Inherited from
firstExecutionRunId
• Readonly firstExecutionRunId: string
Run Id of the first Execution in the Workflow Execution Chain.
workflowId
• Readonly workflowId: string
The workflowId of the current Workflow
Inherited from
Methods
cancel
▸ cancel(): Promise<IRequestCancelWorkflowExecutionResponse>
Cancel a running Workflow.
When a Workflow is cancelled, the root scope throws CancelledFailure with message: 'Workflow canceled'.
That means that all cancellable scopes will throw CancelledFailure.
Cancellation may be propagated to Activities depending on ActivityOptions#cancellationType, after which
Activity calls may throw an ActivityFailure, and isCancellation(error) will be true (see isCancellation).
Cancellation may be propagated to Child Workflows depending on ChildWorkflowOptions#cancellationType, after
which calls to executeChild and ChildWorkflowHandle#result will throw, and isCancellation(error)
will be true (see isCancellation).
Returns
Promise<IRequestCancelWorkflowExecutionResponse>
Inherited from
describe
▸ describe(): Promise<WorkflowExecutionDescription>
Describe the current workflow execution
Returns
Promise<WorkflowExecutionDescription>
Inherited from
executeUpdate
▸ executeUpdate<Ret, Args, Name>(def, options): Promise<Ret>
Start an Update and wait for the result.
Type parameters
| Name | Type |
|---|---|
Ret | Ret |
Args | extends [any, ...any[]] |
Name | extends string = string |