태스크 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.90Pricing task : Final action for Rental Agreement for Julian Bayles (May 20, 1970)
종료를 클릭하십시오.
결과
규칙 세트를 디버그하는 방법에 대한 학습서를 완료했습니다. 완료된 학습서를 보려면 완료된 학습서 실행으로 이동하십시오.