Skip to main content

Class: ExecutionEngine

A class representing the execution engine for handling asynchronous execution flows.

Implements​

Constructors​

Constructor​

new ExecutionEngine(planGenerator, handlerInvoker, timeoutProcessor, resultProcessor): ExecutionEngine

Parameters​

planGenerator​

ExecutionPlanner

handlerInvoker​

HandlerInvoker

timeoutProcessor​

TimeoutProcessor

resultProcessor​

ResultProcessor

Returns​

ExecutionEngine

Methods​

execute()​

execute(context): Promise<void>

Executes the provided execution context by generating an execution plan, invoking handlers, processing timeouts, and handling results. It manages the flow of execution, including before, context, catch, and after steps, while also handling errors and timeouts.

Parameters​

context​

ExecutionContext

The execution context to be processed.

Returns​

Promise<void>

A promise that resolves when the execution is complete.

Implementation of​

Executable.execute