Skip to main content

Class: WorkflowRunOperationHandler<I, O>

nexus.WorkflowRunOperationHandler

A Nexus Operation implementation that is backed by a Workflow run.

Nexus support in Temporal SDK is experimental.

Type parameters

Name
I
O

Implements

  • OperationHandler<I, O>

Constructors

constructor

new WorkflowRunOperationHandler<I, O>(handler): WorkflowRunOperationHandler<I, O>

Type parameters

Name
I
O

Parameters

NameType
handlerWorkflowRunOperationStartHandler<I, O>

Returns

WorkflowRunOperationHandler<I, O>

Properties

handler

Readonly handler: WorkflowRunOperationStartHandler<I, O>

Methods

cancel

cancel(_ctx, token): Promise<void>

Parameters

NameType
_ctxOperationContext
tokenstring

Returns

Promise<void>

Implementation of

nexus.OperationHandler.cancel


getInfo

getInfo(_ctx, _token): Promise<OperationInfo>

Parameters

NameType
_ctxOperationContext
_tokenstring

Returns

Promise<OperationInfo>

Implementation of

nexus.OperationHandler.getInfo


getResult

getResult(_ctx, _token): Promise<O>

Parameters

NameType
_ctxGetOperationResultContext
_tokenstring

Returns

Promise<O>

Implementation of

nexus.OperationHandler.getResult


start

start(ctx, input): Promise<HandlerStartOperationResult<O>>

Parameters

NameType
ctxStartOperationContext
inputI

Returns

Promise<HandlerStartOperationResult<O>>

Implementation of

nexus.OperationHandler.start