作業 7:除錯規則流程
您將在規則流程的作業中設定岔斷點,以觀看其執行。岔斷點示範規則流程在客戶合格或被拒絕時是如何運作的。
關於這項作業
程序
- 在「規則瀏覽器」中,開啟 flow 套件中的 carreservation 規則流程。
- 在圖表頁面中,在 eligibility 作業上設定一個岔斷點:
- 按一下該作業來選取它。
- 用滑鼠右鍵按一下作業,然後選取開啟岔斷點。

- 在 pricing 作業上設定另一個岔斷點。
- 以 Debug-start-Julian 啟動配置,啟動除錯階段作業。
- 回復執行,這會執行到 eligibility 作業即停止。
- 在變數視圖中,按一下 rental=carrental.RentalAgreement,查看現行值:
Approved Rental Agreement for Julian Bayles (May 20, 1970) of a MidSize car from Mar 17, 2010 at Concord (New Hampshire) to Mar 25, 2010 (8 days) at Concord (New Hampshire). - 回復執行。
在「主控台」視圖中,您可以在套用 eligibility 作業後的輸出中看到:
Eligibility task : Initial action for Rental Agreement for Julian Bayles (May 20, 1970) Eligibility task : Final action for Rental Agreement for Julian Bayles (May 20, 1970) - 回復執行。
主控台顯示 pricing 作業的輸出,其中指出 Julian 通過 eligibility 作業,規則流程繼續遵循 pricing 作業的路徑進行:
Pricing task : Initial action for Rental Agreement for Julian Bayles (May 20, 1970) set price of standard offer for the Rental Agreement for Julian Bayles (May 20, 1970) Add surcharge of 2 for PEI Add surcharge of 3 for PAI Add surcharge of 21 for LDW [Economy, Compact, MidSize] Add surcharge of 15 for CDW [Economy, Compact, MidSize] Rental Agreement for Julian Bayles (May 20, 1970)qualifies for the long term offer set the price of the long term offer for the Rental Agreement for Julian Bayles (May 20, 1970) Rental Agreement for Julian Bayles (May 20, 1970)qualifies for the Spring Season offer Allocating the small discount to the Spring Season offer for Rental Agreement for Julian Bayles (May 20, 1970) * Offer: standard price: 579.90 * Offer: Spring Season price: 550.90 (5.00 % discount) * Offer: long term price: 529.90 # Best Offer: long term price: 529.90 Pricing task : Final action for Rental Agreement for Julian Bayles (May 20, 1970) - 按一下
終止。
結果
您已完成如何除錯規則集的指導教學。如果您想檢視已完成的指導教學,請移至執行已完成的指導教學。