Skip to main content

Class: ExecutionPlanner

A class responsible for generating execution plans based on the provided execution context. It utilizes the StepGenerator to generate steps and the TimeoutGenerator to generate timeout definitions. The generated execution plan includes before, after, catch, and context steps, as well as an optional timeout definition. The class also caches registered plans for efficient reuse.

Constructors​

Constructor​

new ExecutionPlanner(timeoutGenerator, stepGenerator): ExecutionPlanner

Parameters​

timeoutGenerator​

TimeoutGenerator

stepGenerator​

StepGenerator

Returns​

ExecutionPlanner

Methods​

plan()​

plan(context): Promise<ExecutionPlan>

Generates an execution plan for the provided execution context.

Parameters​

context​

ExecutionContext

The execution context for which to generate a plan.

Returns​

Promise<ExecutionPlan>

A promise resolving to the generated execution plan.