Selection of a Winning Rule

The classification and crediting processes use this method to determine the winning rule:

  1. Calculate Scores

    Assign each rule a score, calculated using these attributes of the rule:

    • Rule rank, provided by the user: Rules with a lower rank get a higher score.

    • Position of the rule in the hierarchy: Rules lower in the hierarchy (for example, a leaf) get a higher score.

    • Rank of the parent rule: A rule with a lower rank for the parent rule gets a higher score.

  2. Select qualified rules

    Evaluate the deployed rules against the transaction attributes to determine the qualified rules that match.

  3. Select winning rules

    Select the winning rules from the qualified rules based on the calculated score. The rule with the highest score wins.

If there's a contention, meaning there are more winning rules with the same absolute score than the number of winners, then the application selects the winning rules randomly. However, if the hierarchy isn't modified (stays consistent), then the same winning rule is selected every time the process runs.

Example: Multiple Matching Rules with One Winner

Here's an example credit rule hierarchy:

Node Level

Rule Name

Rank

Criteria

Root Node: Level 0

Root Note

None

None

Branch 1: Level 1

Rule 1

2

Transaction Type = Manual

Branch 1: Level 2

Rule 1.1

4

Country = US

Branch 2: Level 1

Rule 2

3

Sales Channel = Direct

Branch 2: Level 2

Rule 2.1

1

Country = US

This table shows the selection process and the calculated score:

Node Level

Rule Name

Rank

Criteria

Score

Root Node: Level 0

Root Note

None

None

10

The rank for the root node is 99999999 to calculate the score, because the rule rank isn't provided.

Branch 1: Level 1

Rule 1

2

Transaction Type = Manual

515

Branch 1: Level 2

Rule 1.1

4

Country = US

600

Branch 2: Level 1

Rule 2

3

Sales Channel = Direct

315

Branch 2: Level 2

Rule 2.1

1

Country = US

400

Winning Rule: All four rules are qualified. Since the calculated rank for Rule 1.1 is the highest, it becomes the winning rule and the transaction is assigned to credit receivers from that rule.

Tip: If multiple classification hierarchies exist, then the winning rule is selected from each hierarchy. This results in a classification error. Use a single classification hierarchy where possible.If multiple crediting hierarchies exist, then credit receivers from the winning rules from each hierarchy are assigned to the transaction.