Orchestrator Function: Orchestrator WorkflowToken Attribute Log ( current workflow )

by Simon Sparks · 17 January 2026

To use this function add it to the class library file named OrchestratorService.ts

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

Filename: OrchestratorService.ts

Function WorkflowAttributeLog

publicWorkflowAttributeLog(objWorkflowToken:WorkflowToken):void{

letobjWorkflow: Workflow=objWorkflowToken.currentWorkflow;

letarrAttribute: Attribute[]=objWorkflow.attributes;

letobjPropertiesAttributes: Properties=objWorkflowToken.getAttributes();

letobjJson:{}={};

arrAttribute.forEach((objAttribute: Attribute):void=>{

letstrParameterInputName:string=objAttribute.name;
letstrParameterInputValue:string=objPropertiesAttributes.get<string>(strParameterInputName);

objJson[strParameterInputName]=strParameterInputValue;
});


letstrJson:string=Utilities.stringifyJson(objJson);

this.objLogger.info("Workflow attributes in JSON format:"+strJson);
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like