Skip to main content

Interface: WorkflowInternalsInterceptor

Experimental

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.

Methods​

activate()?​

optional activate(input, next): void

Experimental

Called when the Workflow runtime runs a WorkflowActivationJob.

Parameters​

input​

ActivateInput

next​

OmitLastParam<(input, next) => void>

Returns​

void


concludeActivation()?​

optional concludeActivation(input, next): ConcludeActivationInput

Experimental

Called after all WorkflowActivationJobs have been processed for an activation.

Can manipulate the commands generated by the Workflow

Parameters​

input​

ConcludeActivationInput

next​

OmitLastParam<(input, next) => ConcludeActivationInput>

Returns​

ConcludeActivationInput


dispose()?​

optional dispose(input, next): void

Experimental

Called before disposing the Workflow isolate context.

Implement this method to perform any resource cleanup.

Parameters​

input​

DisposeInput

next​

OmitLastParam<(input, next) => void>

Returns​

void