Hi,
We are trying to set up a approval policy with a condition on a custom property for a XaaS blueprint. Any idea ?
Thanks
Where is the custom property defined?
Directly on the form of XaaS blueprint or Input of the workflow show in the form
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.