Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

Watchlist Response Example

Watchlist Response Example

You can run the response with its default values using the following syntax:
WHEN 1 stock with symbol="XYZ" THEN WatchlistStockResponse
In this SQL query,
WatchlistStockResponse
is the name of the response.
The following rule provides the syntax for adding a value to the watchlist:
WHEN 1 stock s WITH s.symbol="XYZ" THEN WatchlistStockResponse WITH objectName="Stock", action="add", newValue="${symbol}"
The following rule provides the syntax for deleting a value from the watchlist:
WHEN 1 stock s WITH s.symbol="XYZ" THEN WatchlistStockResponse WITH objectName="Stock", action="remove", oldValue="${symbol}"
The following rule provides the syntax for changing an existing value in the watchlist:
WHEN 1 stock s WITH s.symbol="XYZ" THEN WatchlistStockResponse WITH objectName="Stock", action="change", oldValue="ABCD", newValue="${symbol}"
The following rule provides the syntax for replacing all of the values in the watchlist:
WHEN 1 stock s WITH s.symbol="XYZ" THEN WatchlistStockResponse WITH objectName="Stock", action="replace", newValue="${symbol}"
The watchlist must exist before the watchlist response can change it.

0 COMMENTS

We’d like to hear from you!