Bookshelf Home | Contents | Index | PDF |
Siebel Product Administration Guide > Siebel Configurator Rule Assembly Language > About Operators in Rule Assembly Language > Attribute Operators in Rule Assembly LanguageRule Assembly Language includes special operators for doing comparisons and particular math operations on attribute values. These operators extract information about the attributes of all the products that have been selected in a relationship. For example, you can determine the number of relationship items that have been selected that have an attribute value greater than a specified amount. Attribute Comparison OperatorsThese operators return the number of relationship items that have been selected for which the comparison is true. For example, you can use The operators count all the items selected from the relationship, not the number of different items. In the preceding example, if the user selects two of the same item and enters a length greater than 5 feet, the The operators take two arguments, A and B. Argument A is the full path from the root of the product to the attribute. Argument B is the comparison value. This value can be of type Integer, Number, Date, or Time. Type DateTime is not supported. Argument B can also be a sub-expression that resolves to one of these data types. In addition, for the Use attribute comparison operators to create subexpressions that form conditions. Attribute comparison operators are shown in Table 37. You can use the numAttr operators to create "any/all" conditions in constraints involving attributes:
For example, you want to write the constraint, when all the instances of products in P have attribute A=X then exclude any instance of products in Q that have attribute B =Y. You would write this constraint as follows: excl(==(numAttr==(@.[P].[A], X), @[P]), >=(numAttr(==(@.[Q].[B], Y), 1))) Attribute Arithmetic OperatorsThe arithmetic operators allow you to determine the maximum and minimum value of an attribute for items that have been selected in a relationship. You can also sum the values of the attributes. The operators take one argument, which is the path to the attribute. Attributes can be of type Number, Integer, Date, or Time. DateTime and Text are not supported. If the type is Date or Time, Use attribute arithmetic operators to create subexpressions that form conditions. Attribute arithmetic operators are shown in Table 38. |
Siebel Product Administration Guide | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |