HP Insight Orchestration 6.3 User Guide

LogicalSubnet logicalSubnet,
Subnet subnet,
PolicyExecutionVO pVO) {
// Custom message.
pVO.doesNotMatch(subnet, HPIOMessage.get(HPIOBundleKey.ALLOCATION_CRITERIA_CUSTOM, Failure message));
boolean match=true;
/* -------------- CUSTOM LOGIC ----------------------*/
/* -------------- CUSTOM LOGIC ----------------------*/
return match;
}
Deploying rules
1. Make sure that the rule file is valid (using the iopolicyassist tool).
2. Copy the validated rule file to <HPIO>/conf/policy/ directory.
3. Wherever applicable, update the hook <policy-rule-file> information in the
policy.xml file by modifying or adding the recently defined rule file.
<policy enabled="false" name="SubnetPolicyCheck.applyFitting">
<policy-rule-file>
SubnetCheck.drl,
newrulefile.drl
</policy-rule-file>
<policy-class-name>policy-class-name</policy-class-name>
</policy>
4. Do one of the following:
To enable any policy, modify the corresponding enabled flag to true in the policy file.
To disable any policy, modify the corresponding enabled flag to false in the policy
file.
5. Restart the Insight Orchestration Windows service for the changes to take effect.
Assigning cost and billing information
Insight Orchestration allows you to specify cost and billing information for services and templates,
which helps to allocate costs to business units based on variable resource usage.
Billing code for services
When you create a service, you can add a billing code, which allows data mining solutions using
the API or database to extract information about which organization to bill.
Enter a billing code by clicking the Options button on the Create Service from Template page, and
entering a value in the Billing Code text box.
The billing code is displayed on the Service Details page.
NOTE: The billing code can be modified only on the Console. It is read-only on the Self Service
Portal.
Email messages sent for Paused for Approval, Add Servers, and Add Disks display billing code
information. If the billing code is not supplied, None is shown.
Assigning cost and billing information 65