Eliminate Decision Based on Rule Example

Initial Point Values

 
Offset

Rule
Type

 
Item Class

Attribute
Name

Attribute
Value

 
Rule

 
Count

 
Breakability

0

G

VEHICLE

COLOR

YEL,GRN

2

2

0

1

S

VEHICLE

SIZE

S

3

0

1

2

P

VEHICLE

COLOR

GRN

3

0

0

The site is triggered

A Logic module with a single function block, Eliminate Decision Based On Rules is executed.

Array Loc1

The rule defined in location one is a grouping rule.

SRC1.

Head item with class of Vehicle, has a COLOR attribute with value of YEL. The possible attribute values are YEL or GRN. There is a match, so the Count is compared to the Rule. Since the Count is greater then or equal to the Rule, the decision is eliminated.

SRC2.

Head item with class of Vehicle, has a COLOR attribute with value of GRN. The possible attribute values are YEL or GRN. There is a match, so the Count is compared to the Rule. Since the Count is greater then or equal to the Rule, the decision is eliminated.

Array Offset 1

The Rule defined in offset one is a Spacing rule.

SRC1.

Head item with class of Vehicle, has a SIZE attribute with value of S. The possible attribute value is S. There is a match, so the Count is compared to the Rule. Since the Count is less than the Rule, the decision is eliminated.

SRC2.

Head item with class of Vehicle, has a SIZE attribute with value of S. The possible attribute value is 'S'. There is a match, so the count is compared to the rule. Since the count is less than the rule, the decision is eliminated.

There are no decisions possible, so the breakability flag is checked. The flag is set to 1, we will roll back any decisions eliminated in this pass.

Array Offset 2

Initial Point Values

 

Offset

Rule
Type

 

Item Class

Attribute
Name

Attribute
Value

Upper
Rel %

Lower
Rel %

Attrib
Count

Total
Count

 

Breakability

0

G

VEHICLE

COLOR

YEL,GRN

0

0

0

0

0

1

S

VEHICLE

SIZE

S

0

0

0

0

1

2

P

VEHICLE

COLOR

GRN

75

50

6

10

0

The Rule defined in offset one is a Percentage rule.

SRC1.

Head item with class of Vehicle, has a COLOR attribute with value of YEL. The possible attribute value is GRN. We don't have a match, so no further processing takes place.

SRC2.

Head item with class of Vehicle, has a COLOR attribute with value of GRN. The possible attribute value is GRN. The total of items released with this attribute is 6, with a total release count of 10, so 60% of the items have had a color attribute of GRN. Since 60% is less then 75 and greater then 50, the decision is not eliminated.

The result is a Wait decision (no decision passes all filters) since at least the Percentage rule is not being processed correctly.

More information

Eliminate Decision based On rule pseudo code.