Updated on 2024-11-29 GMT+08:00

Adding a Blacklist/Whitelist Rule

Scenario

RTDService supports the calculation of blacklist and whitelist rules using the PL/SQL syntax. Service managers can define blacklist and whitelist rules to decide what real-time message data needs to be calculated and processed for final decision-making. If a blacklist/whitelist rule is hit, other processing units will be skipped and the final decision result will be directly generated.

Service managers can write rules with SQL for each event source based on event source fields (event variables) and blacklist and whitelist tables (data that can be imported by users), and maintain the created blacklist and whitelist rules.

Procedure

  1. Log in to the RTD web UI as a service user and select a tenant. For details, see Accessing the RTDService Web UI.
  2. Choose Business Management > Variable Rule Configuration > Blacklist/Whitelist Filtering Rules.
  3. Click Add, select an event source type, set the rule name and rule type, and add SQL code and description.

    • The prefix of the rule name must be fr_.
    • The rule name is case insensitive and must start with a letter or underscore (_). A name can contain a maximum of 30 characters, including [A-Z], [a-z], [0-9] and _.
    Figure 1 Adding a rule

    Click Check Parameter, set the values of the variables used in the rule, and click Check Syntax.

    If the rule fails the check, modify SQL code as prompted and perform the check again.

  4. After the syntax check is passed, click OK.