< 前へ

タスク 7: ルール・フローのデバッグ

ルール・フロー内のタスクにブレークポイントを設定して、ルール・フローの実行を監視します。ブレークポイントは、 顧客が適格な場合、または拒否される場合に、ルール・フローがどのように機能するのかを示します。

このタスクについて

ブレークポイントを設定します。

手順

  1. ルール・エクスプローラーで、flow パッケージ内の carreservation ルール・フロー を開きます。
  2. 「ダイアグラム」ページで、 eligibility タスクにブレークポイントを設定します。
    1. このタスクをクリックして選択します。
    2. タスクを右クリックし、「ブレークポイントの切り替え」を選択します。
    「ダイアグラム」ページでのブレークポイントの設定
  3. pricing タスクに別のブレークポイントを設定します。
  4. Debug-start-Julian 起動構成を使用してデバッグ・セッションを開始します。
  5. 実行を再開し、eligibility タスクで停止するまで実行します。
  6. 「変数」ビューで、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).
  7. 実行を再開します。

    「コンソール」ビューに示される出力から、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)
  8. 実行を再開します。

    「コンソール」には 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)
  9. 「終了」アイコン 「終了」をクリックします。

タスクの結果

ルール・セットのデバッグに関するチュートリアルは これで終了しました。完了したチュートリアルを表示したい場合は、完了したチュートリアルの実行に 進んでください。

< 前へ