Skip to main content

Interface: WorkflowInternalsInterceptor

workflow.WorkflowInternalsInterceptor

Interceptor for the internals of the Workflow runtime.

Use to manipulate or trace Workflow activations.

Implemented by

Methods

activate

Optional activate(input, next): void

Called when the Workflow runtime runs a WorkflowActivationJob.

Parameters

NameType
inputActivateInput
nextOmitLastParam<(input: ActivateInput, next: OmitLastParam<(input: ActivateInput, next: OmitLastParam<...>) => void>) => void>

Returns

void


concludeActivation

Optional concludeActivation(input, next): ConcludeActivationInput

Called after all WorkflowActivationJobs have been processed for an activation.

Can manipulate the commands generated by the Workflow

Parameters

NameType
inputConcludeActivationInput
nextOmitLastParam<(input: ConcludeActivationInput, next: OmitLastParam<(input: ConcludeActivationInput, next: OmitLastParam<...>) => ConcludeActivationInput>) => ConcludeActivationInput>

Returns

ConcludeActivationInput


dispose

Optional dispose(input, next): Promise<void>

Called before disposing the Workflow isolate context.

Implement this method to perform any resource cleanup.

Parameters

NameType
inputDisposeInput
nextOmitLastParam<(input: DisposeInput, next: OmitLastParam<(input: DisposeInput, next: OmitLastParam<...>) => Promise<void>>) => Promise<void>>

Returns

Promise<void>