Skip to content

Latest commit

 

History

History

examples

Execution Engine Examples

Example Code Trace Output Trace Graph
authentication.ts authentication.json Graph Results
car.ts car.json Graph Results
weather.ts weather.json Graph Results
greeting.ts greeting.json Graph Results
usage.ts usage.json Graph Results
usage2.ts usage2.json Graph Results
usage3.ts usage3.json Graph Results

Basic Usage

  • usage.ts: is a fundamental example of using the ExecutionEngine.

  • authentication.ts: illustrates the sequential execution of functions, providing a detailed trace for each step of the workflow.

  • car.ts: an advanced example showcasing the ability to orchestrate intricate tasks simultaneously and hierarchically.

Decorators-based Usage

  • usage2.ts: an alternative usage of the ExecutionEngine that illustrates the integration of decorators (@engine and @run) for a more organized and class-based approach.

  • weather.ts: Advanced example with custom parameters, demonstrating the Execution Engine's versatility in handling complex workflows through decorators (@engine and @run) within TypeScript classes.

  • usage3.ts: example of a trace with a deep workflow and consecutive tasks.

  • greeting.ts: Advanced example demonstrating the Execution Engine's traceOptions through decorators (@engine and @run).