7.3

Table Of Contents
What to do next
To test the workow subscription, request a virtual machine in the service catalog. After the request
indicates successful provisioning, verify that the snapshot was created.
Working with Approval Workflow Subscriptions
You create pre-approval and post-approval workow subscriptions so that you can send an approval
request to an external system for processing. The response, approved or rejected, is then processed by
vRealize Automation.
Approval Service Integration
You create a pre-approval or post-approval workow subscription that runs a custom vRealize Orchestrator
workow that processes the approval request in a system outside of vRealize Automation.
In an approval policy approval level, you can select Use event subscription as the approver. This level can
be one of several in an approval policy. When a service catalog user requests an item to which an approval
policy is applied that includes the Use event subscription approver, the approval service sends a message to
the event broker service with the following results.
n
If you have a published workow subscription with matching criteria, vRealize Orchestrator runs your
approve or reject workow.
n
If you have a published workow subscription, but the criteria do not match, you unpublished the
workow subscription, or you do not have a published subscription, the approval level is approved and
the approval process goes to the next approval level.
The approval workow subscription receives messages from the approval service and compares the
messages to the congured criteria for approval subscriptions. When it nds a message that matches the
criteria, the selected vRealize Orchestrator workow starts to run. The published event data is passed to the
workow as input and processed in the method specied in the workow. The results of the workow are
returned to vRealize Automation and the request is processed. If approved, the next approval level is
evaluated. If rejected, the request is rejected. If the approval service does not receive a reply within 24 hours,
the default timeout for the approval service, the request is processed as rejected.
Configuring vRealize Orchestrator Workflows for Approval Event Topics
You must congure your custom vRealize Orchestrator workow to support the approval message and to
reply with correctly formaed information that vRealize Automation can process.
Approval Event Topic Schema
The pre-approval and post-approval event message schema includes the eld names and values, the
information included in the request, and information about the source of the request.
The following is the structure of the event data payload.
{
fieldNames : Properties, // Property names
fieldValues : Properties, // Property values
// Information about the request
requestInfo : {
requestRef : STRING, // Identifier for the source request
itemName : STRING, // Name of the requested item
itemDescription : STRING, // Description of the requested item
reason : STRING, // Justification provided by the user specifying why the
request is required
Chapter 1 Life Cycle Extensibility
VMware, Inc. 37