Interface: WorkflowInboundCallsInterceptor
workflow.WorkflowInboundCallsInterceptor
Implement any of these methods to intercept Workflow inbound calls like execution, and signal and query handling.
Implemented by
Properties
execute
• Optional
execute: (input
: WorkflowExecuteInput
, next
: OmitLastParam
<(input: WorkflowExecuteInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise
<unknown
>
Called when Workflow execute method is called
Type declaration
▸ (input
, next
): Promise
<unknown
>
Called when Workflow execute method is called
Parameters
Name | Type |
---|---|
input | WorkflowExecuteInput |
next | OmitLastParam <(input: WorkflowExecuteInput, next: OmitLastParam<...>) => Promise<unknown>> |
Returns
Promise
<unknown
>
result of the Workflow execution
handleQuery
• Optional
handleQuery: (input
: QueryInput
, next
: OmitLastParam
<(input: QueryInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise
<unknown
>
Called when a Workflow is queried
Type declaration
▸ (input
, next
): Promise
<unknown
>
Called when a Workflow is queried
Parameters
Name | Type |
---|---|
input | QueryInput |
next | OmitLastParam <(input: QueryInput, next: OmitLastParam<...>) => Promise<unknown>> |
Returns
Promise
<unknown
>
result of the query
handleSignal
• Optional
handleSignal: (input
: SignalInput
, next
: OmitLastParam
<(input: SignalInput, next: OmitLastParam<...>) => Promise<void>>) => Promise
<void
>
Called when signal is delivered to a Workflow execution