You can capture the criteria and the corresponding rates for long distance phone calls in a single table.
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.
In the Decision Table Creation Wizard that appears, enter ratestable in the Decision Table Name field and choose Next.
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.
Select the Table has Horizontal Condition checkbox. Choose Next.
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.
Choose Finish.
Save the changes.
In the Outline view, the ratestable node appears.
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.
Note
You can also choose Add Condition Value in the context menu of the cells under the condition headers and enter all the values in the available rows in the dialog box that appears.
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: