Skip to main content

callOperation

@webda/core


Function: callOperation()

callOperation(context, operationId): Promise<void>

Defined in: packages/core/src/core/operations.ts:1086

Call an operation within the framework

The result is written in its public form (toOperationOutput), built as the caller. When transaction participants are registered (see registerOperationTransactionParticipant), the outermost operation runs in a transaction: begun after the checks and before Webda.BeforeOperation, committed once the method resolved (a streamed result fully written) and before Webda.OperationSuccess, rolled back before Webda.OperationFailure. Nested operations join it.

Parameters​

context​

OperationContext

the execution context

operationId​

string

the operation identifier

Returns​

Promise<void>

once the operation finished