测试SAP BRF+ ruleset
Created by Jerry Wang, last modified on Oct 01, 2014
使用wiki"使用代碼創建BRF ruleset"提到的report 創建ruleset,里面包含了兩個ruleset variable, 這兩個rule variable的初始化分別由calc. cust. discount和calc. pro. discount這兩個decision table來完成。
Decision table的rule 維護如下
如果customer是“sap”,item是“ballpen”,則customer discount值為0.15
如果customer是“sap”,item是“pencil”,則customer discount值為0.12
如果不滿足以上兩個條件,則無discount
這里的column customer, item和Customer Discount都是function的context里定義的變量。
點擊Simulation button:
選擇Interpretation Mode:
點Execute button.
因為customer=sap, item=pencil, 滿足decision table里的entry,因此customer_discount為0.12
promotion=sun, item = pencil, 不滿足decision table里的任何一條entry,因此promotion_discount為0.
所以rule里的if 條件不滿足,因此price將按照customer discount進行計算: final price = 10 / ( 1 + 0.12 ) = 8.93
如果使用"Execute and Display Processing Steps", 能夠看到BRF+ 每一步具體的執行步驟:
總結
以上是生活随笔為你收集整理的测试SAP BRF+ ruleset的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用户现可在 Linux 设备上制作谷歌
- 下一篇: FLASH如何绘制圆