To use this function add it to the class library file named PluginAVIService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginAVIService.ts
Description: Orchestrator Function to End an AVI Workflow.
Public Function: WorkflowEnd
public WorkflowEnd<T>(objAviWorkflowRuntime: AviWorkflowRuntime, strType: AviTypes): T {
let objAviVroClient: AviVroClient = objAviWorkflowRuntime.getAviVroClient();
let arrAviRestResource: AviRestResource[] = objAviVroClient.executeWorkflow(objAviWorkflowRuntime.getWorkflowId());
let objAviRestResource: AviRestResource = arrAviRestResource[0];
let strObjectID: string = System.getObjectId(objAviRestResource);
let objAviObject: T = this.FindForType<T>(strType, strObjectID);
return objAviObject;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
