Skip to main content

Interface: WorkflowInternalsInterceptor

workflow.WorkflowInternalsInterceptor

Interceptor for the internals of the Workflow runtime.

Use to manipulate or trace Workflow activations.

This API is for advanced use cases and may change in the future.

Implemented by

Methods

activate

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

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

dispose(input, next): 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<...>) => void>) => void>

Returns

void