Creating a Decision Table

Use

You can capture the criteria and the corresponding rates for long distance phone calls in a single table.

Procedure

  1. In the Project Explorer view, expand the ratecalculation node and the Rules Modeling node and in the context menu of the ratecalcrules node, choose New Decision Table .

  2. In the Decision Table Creation Wizard that appears, enter ratestable in the Decision Table Name field and choose Next .

  3. On the Select the Conditions screen, double-click the following aliases in the Available Conditions section:

    • CallCharges/Charges/ConnectionProvider

    • CallCharges/Charges/DestinationCountry

    • CallCharges/Charges/TypeOfLine

    The aliases appear in the Selected Conditions section.

  4. Select the Table has Horizontal Condition checkbox. Choose Next .

  5. On the Select the Actions screen, double-click CallCharges/Charges/ConnectionRate = {double} in the Available Actions section.

    The alias appears in the Selected Actions section.

  6. Choose Finish .

  7. Save the changes.

Adding Condition and Action Values

  1. In the decision table editor that appears, double-click each of the cells under the condition headers ( CallCharges/Charges/Connection Provider , CallCharges/Charges/Destination Country , and CallCharges/Charges/Type Of Line ) and enter the values.

  2. Double-click each cell under the action header ( CallCharges/Charges/ConnectionRate = {double} in the decision table, enter a value and press Enter .

Refer to the decision table below for the condition and action values you need to enter:

Next Step

Creating the Rule