Mapping Table Introducer as Comparator

Note: You cannot use this comparator component in Simulation Tool.

The Mapping Table Introducer component allows you to use an existing mapping table in a plan and set up the logic that defines the computation of the final values.

The Mapping Table Introducer component compares row by row the input columns of a mapping table with the 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 Introducer 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 Introducer 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 Introducer 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 Introducer. To open and modify the mapping table class, click .

Mapping Table: Provides the list of available mapping tables that relate to the selected class completed with the string parameters and properties. Select the mapping table that you want to use with the Mapping Table Operator, or select a parameter or a property that will include the identifier a mapping table.

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.