Orchestrator Function: AVI Workflow End

by Simon Sparks · 11 March 2026

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

publicWorkflowEnd<T>(objAviWorkflowRuntime:AviWorkflowRuntime,strType:AviTypes):T{

letobjAviVroClient:AviVroClient=objAviWorkflowRuntime.getAviVroClient();

letarrAviRestResource:AviRestResource[]=objAviVroClient.executeWorkflow(objAviWorkflowRuntime.getWorkflowId());

letobjAviRestResource:AviRestResource=arrAviRestResource[0];

letstrObjectID:string=System.getObjectId(objAviRestResource);

letobjAviObject:T=this.FindForType<T>(strType,strObjectID);

returnobjAviObject;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like