Orchestrator Action

by Simon Sparks · 5 January 2026

This is a sample of how to create an orchestrator action using the Build Tools.

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: Samples / Action.ts

import { ConfigElementAccessor } from "com.vmware.pscoe.library.ts.util/ConfigElementAccessor";

import { SampleClassName } from "./SampleClassName";

/**
 * @param {string} strTenantID
 * @returns {Array/Properties}
 * @function 
 * @method
 * @author Simon Sparks <simonsparks@cloudbuildtools.com>
 * @since 1.0.0
 * @version 1.0.0
 * @description Action
 * @summary Action
 * @function actionSample();
 * @throws {Error}
 */
(function (strTenantID: string): Properties[] {
  let arrProperties: Properties[] = [];

  if (strTenantID === null || strTenantID === "") {
    // Do Nothing
  }
  else {

    let strPrivateValue: string = `Testing ${strProjectID}`;

    let objSampleClassName:SampleClassName = new SampleClassName(strPrivateValue);

    let objConfigElementAccessorGeneral: ConfigElementAccessor = new ConfigElementAccessor("CompanyName/General");

    let strEnvironment: string = objConfigElementAccessorGeneral.get<string>("Environment_Road_Sign", false);

    let objConfigElementAccessorEnvironment: ConfigElementAccessor = new ConfigElementAccessor(`General/t${strEnvironment}`);

    let objProperties: Properties = objConfigElementAccessorEnvironment.get<Properties>("VariableName");

    let arrProperties: Properties[] = Utilities.ConvertPropertiesToArrayOfProperties(objProperties);
  }

  return arrProperties;
});

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.