Orchestrator Function: Orchestrator Get Workflow By Path and Name

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 getWorkflowByPathAndName

publicgetWorkflowByPathAndName(strWorkflowPath:string,strWorkflowName:string):Workflow{

letobjWorkflowCategory: WorkflowCategory=Server.getWorkflowCategoryWithPath(strWorkflowPath);

letarrWorkflow: Workflow[]=objWorkflowCategory.allWorkflows;

letobjWorkflow: Workflow=arrWorkflow.find((objWorkflow: Workflow):boolean=>objWorkflow.name===strWorkflowName);

returnobjWorkflow;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like