The Multi-valued Evaluator Operator counts the number of values which are in a multi-valued property. If the multi-valued property is of numerical type, the Multi-valued Evaluator Operator calculates the sum and the average of all the numerical values which are in the multi-valued property and determines the smallest and the greatest of these numerical values.
|
Note: Use the Property Type Convertor Operator to convert an existing property into a multi-valued property. |
To calculate a price that depends on a number of recipients, the rating branch of a price plan needs two components:
A Filter Operator that tests the recipient addresses
A Multi-valued Evaluator that counts the number of values which are in the multi-valued property "RecipientsAddresses"
To identify the recipients of the service providers, a Filter Operator tests their address. The Filter Operator is configured to create one multi-valued property per service provider: MeteoRecipients, NewsRecipients, ExchangeRecipients, SpotsRecipients, TrafficRecipients and TaxiRecipients. All the addresses that do not match a comparison are added to the property "RejectedAdresses".
The configuration of the Filter Operator relating to the service provider Meteo is the following:
|
Property Name |
Comparator |
Comparison Value |
|
MeteoRecipients |
ends with |
@meteo.com |
In this example, it is supposed that once the Filter Operator have completed the comparisons:
The multi-valued string meteoRecipients contains two values: "greatbritain.country@meteo.com" and "london.city@meteo.com". The multi-valued property RejectedAdresses contains "ysmith.messagestore@blue.uk".
The multi-valued properties of the other recipients are empty.
Once the Filter Operator have completed its tasks, the Multi-Valued Evaluator Operator counts:
The number of recipients per service provider, the number of which is six.
The number of addresses that are retrieved in the multi-valued property of each recipient, which is two for MeteoRecipients and zero for the other recipients.
Name: Type the name of the component (mandatory).
Description: Allows you to type the description of the component (optional).
Property Name: Provides the list of multi-valued properties of the plan. Select the multi-valued property that you want to evaluate.
Count Property Name: Allows you to name the property that retrieves the number of all the string values which are in a multi-valued property of string type.
Sum: This area is only available if you want to evaluate a multi-valued property of numerical type.
Property Name: Allows you to name the property that retrieves the sum of all the numerical values which are in a multi-valued property.
Default Value: Allows you to type a default value that is assigned to the previous property if the multi-valued property is empty. The default value is mandatory if the Property Name box is not empty.
Minimum: This area is only available if you want to evaluate a multi-valued property of numerical type.
Property Name: Allows you to name the property that retrieves the smallest value of all the numerical values which are in a multi-valued property.
Default Value: Allows you to type a default value that is assigned to the previous property if the multi-valued property is empty. The default value is mandatory if the Property Name box is not empty.
Maximum: This area is only available if you want to evaluate a multi-valued property of numerical type.
Property Name: Allows you to name the property that retrieves the greatest value of all the numerical values which are in a multi-valued property.
Default Value: Allows you to type a default value that is assigned to the previous property if the multi-valued property is empty. The default value is mandatory if the Property Name box is not empty.
Average: This area is only available if you want to evaluate a multi-valued property of numerical type.
Property Name: Allows you to name the property that retrieves the average of all the numerical values which are in a multi-valued property.
Default Value: Allows you to type a default value that is assigned to the previous property if the multi-valued property is empty. The default value is mandatory if the Property Name box is not empty.