Skip to main content

Actions._processTemplate() method

Processes a template action by expanding it and registering the generated actions.

Signature​

protected _processTemplate(input: {
actionName: string;
jsonActionTemplate: JsonActionTemplate;
}): Promise<void>;

Parameters​

Parameter

Type

Description

{ actionName, jsonActionTemplate, }

(not declared)

input

{ actionName: string; jsonActionTemplate: JsonActionTemplate; }

Returns​

Promise<void>

A promise that resolves when processing is complete.

Exceptions​

ConfigurationError If duplicate action names are detected during expansion or if template expansion fails.

Remarks​

This helper method is called during collection initialisation for each action whose name contains template syntax ({{ markers).

Processing steps:

  1. Calls \_expandTemplateActions() to generate all action instances from the template's matrix parameters.
  2. Validates that each expanded action name is unique and does not conflict with existing actions.
  3. Registers each expanded action in the internal maps:
    • \_actionsMap: Maps name to action instance.
    • \_jsonActionsNamesMap: Maps expanded name back to original template name.
    • \_namesSet: Tracks all registered names for duplicate detection.

Generated via tsdoc2docusaurus 1.3.2 by API Extractor/Documenter 7.57.2.