Skip to main content

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
NameType
inputWorkflowExecuteInput
nextOmitLastParam<(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
NameType
inputQueryInput
nextOmitLastParam<(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

Type declaration

▸ (input, next): Promise<void>

Called when signal is delivered to a Workflow execution

Parameters
NameType
inputSignalInput
nextOmitLastParam<(input: SignalInput, next: OmitLastParam<...>) => Promise<void>>
Returns

Promise<void>


handleUpdate

Optional handleUpdate: (input: UpdateInput, next: OmitLastParam<(input: UpdateInput, next: OmitLastParam<...>) => Promise<unknown>>) => Promise<unknown>

Called when Update handler is called

Type declaration

▸ (input, next): Promise<unknown>

Called when Update handler is called

Parameters
NameType
inputUpdateInput
nextOmitLastParam<(input: UpdateInput, next: OmitLastParam<...>) => Promise<unknown>>
Returns

Promise<unknown>

result of the Update


validateUpdate

Optional validateUpdate: (input: UpdateInput, next: OmitLastParam<(input: UpdateInput, next: OmitLastParam<...>) => void>) => void

Called when update validator called

Type declaration

▸ (input, next): void

Called when update validator called

Parameters
NameType
inputUpdateInput
nextOmitLastParam<(input: UpdateInput, next: OmitLastParam<...>) => void>
Returns

void