The Switching Comparator component compares the state of a prepaid account with one or more predefined values (Active, Blocked, Locked, or Closed).
The comparison is true when the state of the prepaid account matches one of the predefined values.
When you insert it in the decision tree, the Switching Comparator creates two to five separate branches:
One to four branches corresponding to a predefined value (Active, Blocked, Locked, or Closed), but only one branch is activated if the comparison is true.
One branch that is activated when the comparison is false.
When the component is executed, only one branch is activated depending on the test result.
In the refill logic of a refill plan, if you want to make a refill depending on the state of the prepaid account, you may need to compare the state of the prepaid account with one of the predefined states (Active, Blocked, Locked, or Closed). To use the Switching Comparator inside your price plan, do the following:
After you add the component, choose the "Account State of Prepaid Account" as the property name.
Describe the refill of each decision tree branch by using a Function component.
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 properties. Because a refill plan is associate to one and only one prepaid account, the list provides only the property "Account State of Prepaid Account". Select this property.
Values: Provides the list of the states of a prepaid account. Select a state, and then click
to add a value to the table.
Active: Any operation is possible when the prepaid account is active
Blocked: Some operations (refills, overruns, and overspending) are possible when the prepaid account is blocked
Locked: Some operations (refills, overruns, and overspending) are possible when the prepaid account is locked
Closed: No operation is possible when the prepaid account is closed
: Adds a row to the table. Click the button to add a value to the table.
: Deletes a row from the table. To remove a value, select the corresponding row, and then click this button.
: Moves a row up in the table. To move a value up, select the corresponding row, and then click this button.
: Moves a row down in the table. To move a value down, select the corresponding row, and then click this button.
: Opens the Open dialog box to search for a file and import data into the table. Click this button when you want to create values with data from a CSV file instead of manually entering data.
: Deletes all the rows in the table. Click this button to delete the list of values.