Orchestrator Class Library: Sample

by Simon Sparks · 5 October 2025

This is an example of how to create an orchestrator class library using the Build Tools.

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

Filename: Samples / ClassLibrary.ts

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

export class SampleClassName {

  public strPublicValue:string;

  private strPrivateValue:string;
  
  constructor(strPrivateValue: string) {
  
    if (!strPrivateValue) {
        throw new Error('strPrivateValue');
    }
  
    this.strPrivateValue = strPrivateValue;
    
    this.setPublicValue();
  }
  
  public getPrivateValue():string {
    return this.strPrivateValue;
  }

  public setPrivateValue(strPrivateValue: string):void{
    this.strPrivateValue = strPrivateValue;
    
    this.setPublicValue();
  }
  
  private setPublicValue(): void {
    this.strPublicValue = this.strPrivateValue;
  }
}


Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.