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
Name | Type |
---|---|
handler | WorkflowRunOperationStartHandler <I , O > |
Returns
WorkflowRunOperationHandler
<I
, O
>
Properties
handler
• Readonly
handler: WorkflowRunOperationStartHandler
<I
, O
>
Methods
cancel
▸ cancel(_ctx
, token
): Promise
<void
>
Parameters
Name | Type |
---|---|
_ctx | OperationContext |
token | string |
Returns
Promise
<void
>
Implementation of
nexus.OperationHandler.cancel
getInfo
▸ getInfo(_ctx
, _token
): Promise
<OperationInfo
>
Parameters
Name | Type |
---|---|
_ctx | OperationContext |
_token | string |
Returns
Promise
<OperationInfo
>
Implementation of
nexus.OperationHandler.getInfo
getResult
▸ getResult(_ctx
, _token
): Promise
<O
>
Parameters
Name | Type |
---|---|
_ctx | GetOperationResultContext |
_token | string |
Returns
Promise
<O
>
Implementation of
nexus.OperationHandler.getResult
start
▸ start(ctx
, input
): Promise
<HandlerStartOperationResult
<O
>>
Parameters
Name | Type |
---|---|
ctx | StartOperationContext |
input | I |
Returns
Promise
<HandlerStartOperationResult
<O
>>
Implementation of
nexus.OperationHandler.start