Skip to content

Instantly share code, notes, and snippets.

@chelnak
Last active November 23, 2016 20:20
Show Gist options
  • Select an option

  • Save chelnak/0a6fb34302eac5446ba1424697807823 to your computer and use it in GitHub Desktop.

Select an option

Save chelnak/0a6fb34302eac5446ba1424697807823 to your computer and use it in GitHub Desktop.
Update the vRO Workflow Associated with an XaaS Blueprint
/*
- Update the vRO Workflow Associated with an XaaS Blueprint
- Input: vCACCAFEHost [vCACCAFE:vCACHost]
- Input: blueprintId [String]
- Input: workflowId [String]
*/
var tenant = vCACCAFEHost.tenant;
var blueprintId = "8a219674-d083-43dd-938f-f14297082ec9";
var workflowId = "456c586c-a5f6-4371-a509-28eb90ee8714";
var client = vCACCAFEHost.createAdvancedDesignerClient();
var serviceBlueprintService = client.getAdvancedDesignerServiceBlueprintService();
var serviceBlueprint = serviceBlueprintService.getServiceBlueprint(tenant, blueprintId);
serviceBlueprint.setWorkflowId(workflowId);
serviceBlueprintService.updateServiceBlueprint(tenant, serviceBlueprint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment