|
Note: You can use the Splitter components in a price plan, in a pricing macro, or in a refill plan (refill logic) but not in a charging plan. |
The Amounts Aggregator Splitter component
creates two or more branches in the decision tree to calculate amounts
and performs one of the following operations:
Calculates the sum of the amounts of all the branches
Compares the amounts of all the branches to activate either the lowest amount or the highest amount
Calculates the average amount of all the branches
In each branch of the Amounts Aggregator Splitter, you can insert components to calculate an amount.
The Amounts Aggregator Splitter component allows you to describe independent rules in each branch. You can compare or combine the calculated amounts in the different branches to provide one single amount. The final amount depends on the type of the operation:
|
With |
The final amount is |
|
sum |
The sum of all the amounts calculated in each branch |
|
minimum |
The minimum of all the amounts calculated in each branch |
|
maximum |
The maximum of all the amounts calculated in each branch |
|
mean |
The average of all the amounts calculated in each branch |
In a price plan, if you want to bill a chargeable item package according to two distinct criteria and charge the customer the lower price, do the following:
In the branch of the price plan, insert the Amounts Aggregator Splitter component by selecting the operation “Minimum” and the number "2" as the number of amounts or branches.
Describe the pricing, criterion by criterion, of each branch.
You sell educational documents on the web. The customer is charged an opening fee according to the size and the category of documents. To attract new customers, you decide to charge only the size or the category which represents the lowest fee.
You perform this operation by inserting the Amounts Aggregator Splitter component at the suitable level of your price plan. You set up the component by choosing "minimum" as the operation and "2" as the number of operations. The component will calculate:
The price according to the category in the first branch
The price according to the size in the second branch
After calculation, the customer is charged the lowest price.
Name: Type the name of the component (mandatory).
Description: Allows you to type the description of the component (optional).
Operation: Provides the list of operations to apply to the tree branches of the Amounts Aggregator Splitter. Sum is the default value. Select one of the following operations:
sum: Calculates the sum of the amounts of all the branches
minimum: Activates the branch whose amount is the lowest
maximum: Activates the branch whose amount is the highest
mean: Calculates the average of the amounts of all the branches
Number of Amounts: Provides the list of the number of branches that you want to compare or aggregate. The number 2 is the default value. Select a number ranging from 2 to 20.