Orchestrator Function: Orchestrator Get Workflow By Path and Name

by Simon Sparks · January 17, 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

public getWorkflowByPathAndName(strWorkflowPath: string, strWorkflowName: string): Workflow {

    let objWorkflowCategory: WorkflowCategory = Server.getWorkflowCategoryWithPath(strWorkflowPath);

    let arrWorkflow: Workflow[] = objWorkflowCategory.allWorkflows;

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

    return objWorkflow;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like