Pricing Administration Guide > Creating Attribute Adjustments >

How Attribute Adjustments Apply Rules


When you set up attribute adjustments, a search specification template is dynamically generated based on the definition of the condition dimensions of the attribute adjustment.

The following properties of a condition dimension are important for generating the search specification template:

  • Operator. This property specifies the type of comparison performed against the column during run time.
  • Sort Order. This property specifies the sorting priority of the columns in the search specification.
  • Sort Method. This property specifies ascending or descending ordering of the search specification.

At run time, this search specification template, along with run-time contextual values, executes a lookup against the rules of the attribute adjustments, as defined in the Conditions view.

For example, shirts have two attributes that affect their price, color and size. You enter the condition dimensions shown in Table 8.

Table 8. Sample Condition Dimensions
Name
Operator
Variable Map
Data Type
Sort Order
Sort Method

Size

<

XA

Number

2

Descending

Color

=

XA

Text

1

Ascending

Based on these dimensions, at run time, the application generates and caches the search specification:

[Matrix.Color] = {Row.Color} AND [Matrix.Collar] < {Row.Length}, Order by [Matrix.Color] Ascending, [Matrix.Collar] Descending

The notation [Matrix.<Column>] refers to a condition dimension of an attribute adjustment. {Row.<Var Name>} is a contextual value, generated at run time.

You also enter the rules shown in Table 9.

Table 9. Sample Rules
Sequence
Color
Size
Adjustment Type
Adjustment Amount

1

Red

15

% Discount

15

2

Blue

15

% Discount

15

3

Green

15

% Discount

15

4

Red

10

% Discount

25

5

Blue

10

% Discount

25

6

Green

10

% Discount

25

In run time, when there are incoming transactions, the application uses the search specification template with the contextual values from the specific transaction to see which rule applies. For example:

  • If the transaction has Color =Red and Size = 11, the application generates the search specification [Matrix.Color] = "Red" AND [Matrix.Size] < 11. This search specification matches the rule for Color = Red and Size = 10, so the discount of 25% is applied to the transaction.
  • If the transaction has Color =Red and Size = 16, the application generates the search specification [Matrix.Color] = "Red" AND [Matrix.Size] < 16. This search specification matches the rule for Color = Red and Size = 15, so the discount of 15% is applied to the transaction.
  • If the transaction has Color =Red and Size = 8, the application generates the search specification [Matrix.Color] = "Red" AND [Matrix.Size] < 8. This search specification does not match any rule, so no discount is applied to the transaction.
Pricing Administration Guide