Table of Contents

Search

  1. Preface
  2. Introduction to Banking Use Case
  3. Before You Begin
  4. Alerting Customer Account Balance Details
  5. Notifying Stock Price Changes
  6. Notifying Credit Card Transactions
  7. Notifying Free Health Checkups for Account Holders
  8. Alerting the Bank Manager about Customers with a Particular Account Type in a City Overview
  9. Alerting Customer Cash Withdrawal Details
  10. Alerting Stock Prices to DMAT Account Holders
  11. Checking Customer Cash Withdrawal Details for a Specified Duration
  12. Alerting Consequent Credit Card Transaction Rejections
  13. Monitoring Balance Threshold of Customers
  14. Using the Dashboard Functions
  15. Managing Banking Users and Roles
  16. Importing and Exporting Objects
  17. Setting Up High Availability
  18. Using Custom Services
  19. Using the REST APIs
  20. Using Java Adapter for REST API

Banking Use Case Tutorial

Banking Use Case Tutorial

Step 10. Create an Advanced Rule

Step 10. Create an Advanced Rule

Use the POST method to create a rule to check for customer balance below 10000 and send an RTAM response to the administrator.
  1. In the RESTClient
    Request Header
    section, configure the following properties:
    Field
    Value
    Method
    POST
    URL
    http://localhost:8080/rulepoint/api/projects/65536/rules
  2. In the
    Request Body
    section, configure the following property:
    {"name":"Rule to check for customers with balance below 10000","description":"Rule evaluating events from a SQL Source to a RTAM Responder, \ndynamic schedule for the source","drqlStatement":"when 1 customer_accounts t1 with t1.total_bal < 10000 as Total_Balance then rtamresponse with to = \"Administrator\", body = \"Account ${acc_no} has balance less than 10000\", priority = \"2\", subject = \"Accounts with balance less than 10000\", channels = \"Account Balance\",metadata = \" \"","force":"true"}
  3. Click
    SEND
    .
  4. Verify that the advance rule is created. The Response Header shows the status as created.
  5. Select the
    Response Body
    tab and copy the href for future REST calls. For example, "href": "api/projects/65536/rules/e24296b5-7d5f-4440-aa09-0e8716629f11"

0 COMMENTS

We’d like to hear from you!