Universal Containers has four Price Rules with different Calculator Evaluation Events and Evaluation Orders.
Which rule will evaluate first?
A. Rule D with Evaluation Orcer of 5, and Calculator Evaluation Event of On Calculate
B. Rule C with Evaluation Order of 20, and Calculator Evaluation Event of Before Calculate
C. Rule A with Evaluation Order of 10, and Calculator Evaluation Event of Before Calculate
D. Rule B with Evaluation Order of 20, and Calculator Evaluation Event of On Initialization
D. Rule B with Evaluation Order of 20, and Calculator Evaluation Event of On Initialization
Explanation:
1. Evaluation Priority Rules:
- Price Rules evaluate first by Calculator Evaluation Event in this order:
On Initialization → Before Calculate → On Calculate → After Calculate
- Within the same event phase, lower Evaluation Order numbers run first
2. Why Rule B Runs First:
- On Initialization phase executes before all other phases
- Evaluation Order 20 doesn't matter here because no other rules are in this phase
- Rule B is the only one in the earliest phase
Why Other Options Are Wrong:
- A (On Calculate): Runs much later in the process
- C (Before Calculate): Runs after On Initialization phase
- A (Before Calculate, Order 10): Would run before Rule C but still after On Initialization
Key Point: Always check the Calculator Evaluation Event first - earlier phases always win regardless of Evaluation Order.