HTTP Request Policy Example

In this example, the GRC_Workflow directive is used to determine the URL at run time because the URL field parameter is not specified. Also, the data object GRC_HANDLE referenced in the Parameters field is defined on the root process, which is two levels above the policy element. When the policy executes, it determines the value of the GRC_HANDLE data object and substitutes that value into the HTTP parameters value. Finally, the return code value is stored in the ReturnCode data object, which is associated with the GRC activity or subprocess (that is, relative path).
The HTTP Request policy in this example uses the following parameters:
HTTP Request Policy Parameters
Policy Parameter
Value
Event
Process Started
Action
HTTP Request
Description
Execute an HTTP Request
Directive
GRC_Workflow
URL
Parameters
Command=setFields&tpHandle=${../../GRC_HANDLE}
Method
POST
Status Code Data Object
GRC/ReturnCode
Policy Label
Process Started->Http Request