Previous Topic: How to Create a ConditionNext Topic: Conditions Based on the Attributes of Users


Conditions Based on the Attributes of Requests

You can specify conditions based on the following attributes of the request affected by the policy:

completionDate

dateCreated

dateRequired

description

estimatedCost

id

lastModified

priority

name

requestedBy

requestedByAccountId

requestedFor

requestedForAccountId

status

The following attributes may require explanation:

estimatedCost

Specifies the total estimated cost of all services (including all service options) in the request. The Catalog system calculates this cost when the request is submitted.

Note: To find the cost of the request, click Home, Requests and, if applicable, use the My Requests drop-down list to display requests. Find the request and view the details.

priority

Specifies the priority of the request as a number, using one of the following values:

1 = high

2 = medium_high

3 = medium

4 = medium_low

5 = low

status

Specifies the numeric value of the status of the request.

To use request status as a condition for approval, specify this attribute in your condition, using the approval range, by default, less than 800. For example, the following condition is met when the service is named "Procure Laptop" and the request status is approved:

$(_.service.name=='Procure Laptop' && _.request.status < 800)

To use request status as a condition for fulfillment, specify this attribute in your condition, using the fulfillment range, by default, greater than or equal to 999. For example, the following condition is met when the service is named "Procure Laptop" and the request status is fulfilled:

$(_.service.name=='Procure Laptop' && _.request.status >= 999)

If your organization is not using custom statuses, you can specify the default status values.

If your organization is using custom statuses, find all actual status values (both default and custom). To do so, open the file named requestshared.xml and record the values that you want to use in your conditions.

See also the other examples later in this topic.

Note: This file can be different based on the language of the operating system and is located in a different folder for each localized version of CA Service Catalog. For example, for English (icusen), the requestshared.xml file is located in the USM_HOME\view\webapps\usm\locale\icusen\request folder. For more details about this file, see the Implementation Guide.

other attributes

You can view most of the other attributes when you view the request list pages. Otherwise, open a request to view its additional details.

Examples

Sample conditions follow.