Skip to content

Latest commit

 

History

History
224 lines (125 loc) · 4.43 KB

File metadata and controls

224 lines (125 loc) · 4.43 KB

Home > @aws/durable-execution-sdk-js-testing > DurableOperation

DurableOperation interface

Interface for individual operation level interactions in durable executions. Provides methods to inspect operation details, wait for data, and send callback responses.

Signature:

export interface DurableOperation<TResult = any>

Methods

Method

Description

getCallbackDetails()

Gets the details for a callback operation.

getChainedInvokeDetails()

Gets the details for a chained invoke operation.

getChildOperations()

Gets all child operations of this operation.

getContextDetails()

Gets the details for a context operation.

getEndTimestamp()

Gets the timestamp when this operation ended.

getEvents()

Gets the events associated with this operation.

getId()

Gets the unique identifier of this operation.

getName()

Gets the name of this operation.

getOperationData()

Gets the raw operation data.

getParentId()

Gets the unique identifier of the parent operation.

getStartTimestamp()

Gets the timestamp when this operation started.

getStatus()

Gets the current status of this operation.

getStepDetails()

Gets the details for a step operation.

getSubType()

Gets the subtype of this operation.

getType()

Gets the type of this operation.

getWaitDetails()

Gets the details for a wait operation.

isCallback()

Checks if this operation is a callback operation.

isWaitForCallback()

Checks if this operation is a wait-for-callback operation.

sendCallbackFailure(error)

Sends a callback failure to the durable execution service.

sendCallbackHeartbeat()

Sends a callback heartbeat to the durable execution service to keep the callback active.

sendCallbackSuccess(result)

Sends a successful callback result to the durable execution service.

waitForData(status)

Wait for data for the current operation. If data is not found by the time the execution completes, this function will throw an error.