Interface: WorkflowClientInterceptor
Implement any of these methods to intercept WorkflowClient outbound calls
Properties
cancel?
optionalcancel?: (input,next) =>Promise<IRequestCancelWorkflowExecutionResponse>
Intercept a service call to requestCancelWorkflowExecution
Parameters
input
next
OmitLastParam<(input: WorkflowCancelInput, next: OmitLastParam<...>) => Promise<IRequestCancelWorkflowExecutionResponse>>
Returns
Promise<IRequestCancelWorkflowExecutionResponse>
describe?
optionaldescribe?: (input,next) =>Promise<IDescribeWorkflowExecutionResponse>
Intercept a service call to describeWorkflowExecution
Parameters
input
next
OmitLastParam<(input: WorkflowDescribeInput, next: OmitLastParam<...>) => Promise<IDescribeWorkflowExecutionResponse>>
Returns
Promise<IDescribeWorkflowExecutionResponse>
fetchHistory?
optionalfetchHistory?: (input,next) =>Promise<IHistory>
Experimental
Intercept a service call to getWorkflowExecutionHistory
This interceptor method is experimental - API changes are still possible.
Parameters
input
next
OmitLastParam<(input: WorkflowFetchHistoryInput, next: OmitLastParam<...>) => Promise<IHistory>>
Returns
Promise<IHistory>
list?
optionallist?: (input,next) =>AsyncIterable<WorkflowExecutionInfo>
Experimental
Intercept a service call to listWorkflowExecutions
One interception spans a single consumption of the returned async iterable, including pagination across multiple RPCs and early consumer termination.
This interceptor method is experimental - API changes are still possible.
Parameters
input
next
OmitLastParam<(input: WorkflowListInput, next: OmitLastParam<...>) => AsyncIterable<WorkflowExecutionInfo>>
Returns
AsyncIterable<WorkflowExecutionInfo>
query?
optionalquery?: (input,next) =>Promise<unknown>
Intercept a service call to queryWorkflow
Parameters
input
next
OmitLastParam<(input: WorkflowQueryInput, next: OmitLastParam<...>) => Promise<unknown>>
Returns
Promise<unknown>
signal?
optionalsignal?: (input,next) =>Promise<void>
Intercept a service call to signalWorkflowExecution
If you implement this method, signalWithStart most likely needs to be implemented too
Parameters
input
next
OmitLastParam<(input: WorkflowSignalInput, next: OmitLastParam<...>) => Promise<void>>
Returns
Promise<void>
signalWithStart?
optionalsignalWithStart?: (input,next) =>Promise<string>
Intercept a service call to signalWithStartWorkflowExecution
Parameters
input
next
OmitLastParam<(input: WorkflowSignalWithStartInput, next: OmitLastParam<...>) => Promise<string>>
Returns
Promise<string>
start?
optionalstart?: (input,next) =>Promise<string>
Intercept a service call to startWorkflowExecution
If you implement this method, signalWithStart most likely needs to be implemented too
Parameters
input
next
OmitLastParam<(input: WorkflowStartInput, next: OmitLastParam<...>) => Promise<string>>
Returns
Promise<string>
Deprecated
in favour of startWithDetails
startUpdate?
optionalstartUpdate?: (input,next) =>Promise<WorkflowStartUpdateOutput>
Intercept a service call to updateWorkflowExecution
Parameters
input
next
OmitLastParam<(input: WorkflowStartUpdateInput, next: OmitLastParam<...>) => Promise<WorkflowStartUpdateOutput>>
Returns
Promise<WorkflowStartUpdateOutput>
startUpdateWithStart?
optionalstartUpdateWithStart?: (input,next) =>Promise<WorkflowStartUpdateWithStartOutput>
Intercept a service call to startUpdateWithStart
Parameters
input
WorkflowStartUpdateWithStartInput
next
OmitLastParam<(input: WorkflowStartUpdateWithStartInput, next: OmitLastParam<...>) => Promise<WorkflowStartUpdateWithStartOutput>>
Returns
Promise<WorkflowStartUpdateWithStartOutput>
startWithDetails?
optionalstartWithDetails?: (input,next) =>Promise<WorkflowStartOutput>
Intercept a service call to startWorkflowExecution
This method returns start details via WorkflowStartOutput.
If you implement this method, signalWithStart most likely needs to be implemented too
Parameters
input
next
OmitLastParam<(input: WorkflowStartInput, next: OmitLastParam<...>) => Promise<WorkflowStartOutput>>
Returns
Promise<WorkflowStartOutput>
terminate?
optionalterminate?: (input,next) =>Promise<ITerminateWorkflowExecutionResponse>
Intercept a service call to terminateWorkflowExecution
Parameters
input
next
OmitLastParam<(input: WorkflowTerminateInput, next: OmitLastParam<...>) => Promise<ITerminateWorkflowExecutionResponse>>
Returns
Promise<ITerminateWorkflowExecutionResponse>