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 service option in a service in a request, select Home, Requests and view the details for the request that contains the service option of interest.
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 Oblicore Guarantee 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, if "Premium Laptop" is the value of the Display Text field, then the value of item_text must also be 'Premium Laptop' not 'premium laptop' or 'Premium Laptop' or another value.
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 could be any of these:
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.
Consider the following examples:
$(_.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.
$(_.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.
$(_.sog['Application Hosting'].serviceoption[5].soe[6].estimatedCost>=2500)
Consider the following examples:
$(anySoeWith('estimatedCost',gt,30.0))
anySoeWith('item_text',contains,'share')
| Copyright © 2010 CA. All rights reserved. | Email CA Technologies about this topic |