To use this function add it to the class library file named OrchestratorService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorService.ts
Description: Orchestrator Function to execute a workflow
Function: WorkflowExecute
publicWorkflowExecute(strWorkflowID:string,objProperties:Properties,strUsername:string,strPassword:string):WorkflowToken{
letobjWorkflow:Workflow=Server.getWorkflowWithId(strWorkflowID);
letobjWorkflowToken:WorkflowToken=null;
try{
objWorkflowToken=objWorkflow.execute(objProperties,strUsername,strPassword);
}
catch (objException){
this.objLogger.info(objException);
}
returnobjWorkflowToken;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
