ReadonlyclientReadonly accessor to the underlying WorkflowClient
ReadonlyworkflowThe workflowId of the current Workflow
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).
Describe the current workflow execution
Start an Update and wait for the result.
Return a workflow execution's history
Get a handle to an Update of this Workflow.
Promise that resolves when Workflow execution completes
Start an Update and receive a handle to the Update. The Update validator (if present) is run before the handle is returned.
an Update definition as returned from defineUpdate
update arguments, and update lifecycle stage to wait for
Currently, startUpdate always waits until a worker is accepting tasks for the workflow and the update is accepted or rejected, and the options object must be at least
{
waitForStage: WorkflowUpdateStage.ACCEPTED
}
If the update takes arguments, then the options object must additionally contain an args
property with an array of argument values.
Terminate a running Workflow
Optionalreason: string
A client side handle to a single Workflow instance. It can be used to start, signal, query, wait for completion, terminate and cancel a Workflow execution.
Given the following Workflow definition:
Create a handle for running and interacting with a single Workflow: