Previous Topic: Conditions Based on the Attributes of Service Option Groups

Next Topic: Find the Values of the Attributes of a Service Option

Conditions Based on the Attributes of Service Options

A service option consists of a row of service option elements. You create conditions for service options within the context of the service option group to which they belong.

For service options and service option elements, you can specify conditions that use match functions.

You can use the following attributes to specify conditions based on service options:

category

category_class

category_subclass

code

estimatedCost

external_id

keywords

status

track_as_asset

The following attributes may require explanation:

category, category class, and category subclass

Specifies the values for category, category class, and category subclass from the category.xml file.

View this file and record the values that you want to use in your conditions. This file is located in a different folder for each localized version of CA Service Catalog. For example, for English (icusen), the category.xml file is located in the %USM_HOME%\view\webapps\usm\locale\icusen\billing folder.

This file may be different, based on the language of the operating system. For details about this file, see the Implementation Guide.

estimatedCost

Specifies the estimated cost of a service option in a service in a request. 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.

external_id, code, and keywords

Specifies the values for the attributes named external_id, code, and keywords.

Service builders specify these values when defining the service option elements of a service option group. Service builders typically use these attributes to add meta information about services, especially for categorizing services.

You can find the values of these attributes and record them for use in this condition.

track_as_asset

Specifies a numeric value indicating whether to track this service option as an asset in CA APM, as follows:

0 - No

1 - Yes

Note: This attribute is relevant only when CA Service Catalog is integrated with CA APM.

You can verify whether a service option uses this attribute, as follows: View the value of the Track as an Asset field on the Service Option Element Options window--Options tab.

Service Options as Row Numbers in Service Option Groups

You identify service options in conditions by their row number in the service option group. On the CA Service Catalog GUI, you can find this row number by selecting Service Builder, Service Option Groups, and opening the service option group you want.

When you do so, each service option in the group appears in a table; each row contains one service option. In the condition, specify the row number of the service option of interest. For example, suppose row 2 contains a service option named Windows server. In that case, specify $(_.sog['sogname']serviceoption[2] to include this service option in the condition.

By default, serviceoption[1] specifies that the requestor intentionally selects this service option. Thus, the service does not include this service option automatically.

Formats

Use the following format for conditions with a match function:

$(anySoWith('attribute',operator,'value'))

Use the following format (without spaces) for conditions without a match function:

$(_.sog['sogname'].serviceoption[rownumber] operator 'value' )

For both formats, enclose string values in single quotation marks, and enter numeric values without quotation marks.

Examples

Consider the following examples:

Examples with the Match Function

Consider the following examples: