Conditions for service option elements must reference the service option group and the row of the service option they belong to. To identify the service option element, use its column number in the service option row.
For service options and service option elements, you can specify conditions that use match functions.
You can specify conditions based on the following attributes of the service option elements affected by the policy:
estimatedCost item_type
item_text status
The following attributes may require explanation:
Specifies the estimated cost of a service option element in a service option in a service in a request. The Catalog system includes the cost of all service option elements in the cost of the service option to which they belong. The Catalog system calculates this cost when the request is submitted.
To find the cost of a specific service option in a service in a request, select Home, Requests. View the details for the request that contains that service option.
Specifies a valid value for the item type, as specified in the Type field of the service option element. For example, if the type of the service option element is CA Business Service Insight contract, the value of item_type is 5. Similarly, if the type is Form Designer form, the value of item_type is 14.
Specifies the value of the Display Text field on the service option element definition page. You can specify the condition to require either exact match or an approximate match, as follows:
_.sog[‘ab’].serviceoption[1].soe[2].item_text==’abc’
In this format, the text must match exactly, including case and spaces. For example, suppose "Premium Laptop" is the value of the Display Text field. In that case, the value of item_text must also be 'Premium Laptop': The value cannot be 'premium laptop' or 'Premium Laptop'; the value cannot be any value except an exact match.
anySoeWith(‘item_text’,contains,’abc’)
In this format, the Display Text must contain either the same text as the item_text field or a substring of it. The Display Text is not required to match exactly and is case-sensitive.
For example, if "Premium Laptop" is the value of the Display Text field, then the value of item_text can be any of the following:
Formats
Use the following format for conditions with a match function:
$(anySoeWith('attribute',operator,'value'))
Use the following format (without spaces) for conditions without a match function:
$(_.sog[sogname].serviceoption[rownum].soe[colnum].attribute operator 'value')
For both formats, enclose string values in single quotation marks, and enter numeric values without quotation marks.
Specifies the name of the service option group.
Specifies the row number of the service option.
Specifies the column number of the service option element.
Examples
Consider the following examples:
To do so, use this condition:
$(_.sog['Reserve Virtual Machine'].serviceoption[1].soe[1].item_type==15)
Thus, this condition is met when a service option for creating or extending a reservation meets the specified criteria.
To do so, use this condition:
$(_.sog[‘ Increase Mailbox Size’].serviceoption[1].soe[1].estimatedCost >200)
Thus, this condition is especially useful to specify approvers or fulfillers for service options costing more than a specified amount.
To do so, use this condition:
$(_.sog['Application Hosting'].serviceoption[5].soe[6].estimatedCost>=2500)
Examples with the Match Function
Consider the following examples:
$(anySoeWith('estimatedCost',gt,30.0))
anySoeWith('item_text',contains,'share')
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |