You can use the requests workflows to request catalog items and resource actions, and to complete or cancel work items.
A work item requires user input or action. For example, a workflow interaction, approval action, or responding to a reclamation request.
You can access these workflows from the Workflows view of the vRealize Orchestrator client, in the Requests subdirectory of the plug-in library.
|Cancel a work item||Cancels an active work item. You can use this workflow only if you are a system administrator.|
|Complete a work item||Finishes a work item based on provided user input.|
|Request a catalog item||Requests a catalog item for the user running the workflow.
If you need a workflow to request a composite blueprint, use the Request a catalog with provisioning request workflow.
|Request a catalog item on behalf of a user||Sends a request for a catalog item on behalf of a user. You can use this workflow only for catalog items entitled to both you and the user on behalf of whom you are sending the request.|
|Request a catalog with provisioning request||Requests a composite blueprint as a catalog item for the user running the workflow. If you are providing customized input to the request, you must customize the workflow. Use this workflow for composite blueprints.|
|Request a resource action||Requests a resource action for a catalog item owned by the user running the workflow.|
|Request a resource action on behalf of a user||Sends a request for a resource action on behalf of a user. You can use this workflow only for resource actions entitled to both you and the user on behalf of whom you are sending the request.|
|Request a resource action with a request template|| Requests a resource action that includes complex parameters. The best practice is to duplicate the workflow and then customize it for the action. You can use the workflow to pass complex parameters or hidden parameters that you do not want to appear on the request form. One of the primary applications of this workflow is to customize the IaaS reconfigure virtual machine action.
To create a reconfigure operation on a virtual machine, you must create a copy of the workflow and then modify the script. Configure the parameters that appear in vRealize Orchestrator and set the Cafe.Shim.VirtualMachine.Reconfigure.Requestor parameter. This parameter is used for logging and it must not be empty. See the following example.
var requestTemplate = vCACCAFERequestsHelper.getRequestForResourceAction(operation) var jsonData = vCACCAFERequestsHelper.getResourceActionRequestData(requestTemplate); var json = JSON.parse(jsonData); //Change cpu example json.cpu = 2; //This is a property needed for the Reconfigure IaaS operation: json["Cafe.Shim.VirtualMachine.Reconfigure.Requestor"] = 1; vCACCAFERequestsHelper.setResourceActionRequestData(requestTemplate, JSON.stringify(json)); request = System.getModule("com.vmware.library.vcaccafe.request").requestResourceActionWithRequestTemplate(operation, requestTemplate);
|Wait for a catalog item request||Waits for a catalog item request to finish.|
|Wait for a resource action request||Waits for a resource action request to finish.|
|Wait for a work item||Waits for a work item to finish.|