Switching Comparator

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:

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

Use

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:

  1. After you add the component, choose the "Account State of Prepaid Account" as the property name.

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

Identification area

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

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

Definition tab

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.

: 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.