Skip to content

platform/engines

Documentation

Overview

Classes

Engine

getTypes()

Retrieves the list of available engine types from the platform.

ts
static getTypes(): void;

Returns

  • Type: void
  • Description: An array of supported engine type names.

execute()

Executes a project script or process using the configured engine type.

ts
execute(projectName: string, projectFilePath: string, projectFilePathParam: string, parameters: ExecutionParameters, debug: boolean): any;
ParameterTypeDescription
projectNamestringThe name of the project.
projectFilePathstringThe relative path to the main file to execute within the project (e.g., "lib/script.js").
projectFilePathParamstringA secondary file path parameter (often unused or context-specific).
parametersExecutionParametersAn object containing key/value parameters to pass to the script context.
debugbooleanWhether to execute in debug mode.

Returns

  • Type: any
  • Description: The result returned by the executed script.