Interface: BaseWorkflowHandle<T>
common.BaseWorkflowHandle
Base WorkflowHandle interface, extended in workflow and client libs.
Transforms a workflow interface T
into a client interface.
Type parameters
Name | Type |
---|---|
T | extends Workflow |
Hierarchy
-
BaseWorkflowHandle
Properties
workflowId
• Readonly
workflowId: string
The workflowId of the current Workflow
Methods
result
▸ result(): Promise
<WorkflowResultType
<T
>>
Promise that resolves when Workflow execution completes
Returns
Promise
<WorkflowResultType
<T
>>
signal
▸ signal<Args
, Name
>(def
, ...args
): Promise
<void
>
Signal a running Workflow.
Type parameters
Name | Type |
---|---|
Args | extends any [] = [] |
Name | extends string = string |
Parameters
Name | Type | Description |
---|---|---|
def | string | SignalDefinition <Args , Name > | a signal definition as returned from defineSignal |
...args | Args | - |
Returns
Promise
<void
>
Example
await handle.signal(incrementSignal, 3);