Skip to main content

Actions._expandTemplateActions() method

Expands a template action into multiple concrete actions.

Signature​

protected _expandTemplateActions(input: {
actionName: string;
jsonActionTemplate: JsonActionTemplate;
}): Promise<Map<string, Action>>;

Parameters​

Parameter

Type

Description

{ actionName, jsonActionTemplate, }

(not declared)

input

{ actionName: string; jsonActionTemplate: JsonActionTemplate; }

Returns​

Promise<Map<string, Action>>

A promise that resolves to a map of expanded action names to their corresponding action instances.

Exceptions​

ConfigurationError If the matrix structure is invalid, template format is incorrect, or substitution fails.

Remarks​

This method uses the TemplateExpander to compute the Cartesian product of all matrix parameter values and creates a separate action for each combination, substituting matrix values into both the action name and command templates.

Processing steps:

  1. Validates matrix and template structure.
  2. Delegates to TemplateExpander for matrix processing and name expansion.
  3. Creates action instances via factory callback for each combination.

Matrix variables are scoped to individual actions and accessible via the matrix namespace during action command evaluation.


Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.