Mapping Table Comparator

Note: You can use this component in a price plan, in a pricing macro, in a charging plan, or in a refill plan (refill logic).

The Mapping Table Comparator component allows you to use an existing Mapping Table Class in a plan.

The Mapping Table Operator component compares row by row the input columns of a mapping table with properties of the plan. The comparison stops when the properties match at least one row of the input columns. The output columns related to the input columns are retrieved in generated properties that you can use in the plan. If no property matches the comparison, the mapping table returns a default value for each generated property.

Note: The number of properties must be equal to the number of input columns of the mapping table.

When it is inserted in the decision tree, the Mapping Table Comparator component creates two separate branches:

When the component is performed, only one branch is activated depending on the test result.

Use

In a price plan, if you want to apply different prices to branches according to the value of a specific property, you may need to compare a property with a numerical value or another property. To use the Mapping Table Comparator inside your price plan, do the following:

  1. After you add the component, choose a mapping table class, a mapping table, a date reference, and two properties to compare with the input columns of the mapping table.

  2. Describe the pricing of each decision tree branch by using a Function component.

Example   

An operator needs a price table to retrieve the prices of offers expressed in many currencies depending on the validity periods of the offers. To do that in a price plan, the operator uses a Mapping Table Comparator which contains:

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

Mapping Table Class: Provides the list of available mapping table classes. Select the mapping table class that you want to use with the Mapping Table Operator. To open and modify the mapping table, click .

Mapping Table: Provides the list of available mapping tables. Select the mapping table that you want to use with the Mapping Table Operator.

Reference Date: Provides the list of date properties. Select a date property. Each row in the mapping table includes a time period, therefore the Reference Date enables to select the row whose time period includes the Reference Date. If several rows contain the same Reference Date:

Mapping of Rating Context: Displays the input columns of the mapping table, and allows you to select the properties that you want to compare with the input columns.

Mapping of Generated Properties: Displays the output columns of the mapping table, and allows you to rename the generated properties. When a comparison is true between properties, Reference Date, and input columns, the generated properties retrieve the values of the output column entries.