VMware Cloud Community
ppaquin
Contributor
Contributor

vRA 7.6 Approval Policy based on condition custom properties (XaaS blueprint)

Hi,

We are trying to set up a approval policy with a condition on a custom property for a XaaS blueprint.  Any idea ?

Thanks

Reply
0 Kudos
3 Replies
xian_
Expert
Expert

Where is the custom property defined?

Reply
0 Kudos
ppaquin
Contributor
Contributor

Directly on the form of XaaS blueprint or Input of the workflow show in the form

Reply
0 Kudos
xian_
Expert
Expert

You cannot put these into a condition on the approval policy level definition. What is supported is a vRO workflow triggered by EBS where you can do complex evaluation of your inputs. But this will result in an approve/deny state without any human intervention. Unless your workflow checks an external approval system (ie. SNOW).

Here is the documentation of creating such workflow: Configuring vRealize Orchestrator Workflows for Approval Event Topics

You can also fetch the XaaS inputs via the VCACCAFE plugin (it's within the requestData):

var vrahost = vCACCAFEHostManager.getDefaultHostForTenant();

var request = vCACCAFEEntitiesFinder.getCatalogItemRequest(vrahost, payload.sourceInfo.externalInstanceId);

System.log("Request data: " + request.requestData.toString());

Based on the requestData you can do your custom logic if the request is auto-approved or auto-declined.

Reply
0 Kudos