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

AND and OR Operators

AND and OR Operators

RulePoint evaluates AND and OR conditions from left to right.
The AND operator takes precedence over the OR operator. You should always use parentheses to group the conditions appropriately.
If the first part of an AND clause is false, RulePoint does not evaluate the remaining clause.
Consider the following rule:
WHEN 1 stock WITH s.price > 10 AND (symbol = "XYZ" OR symbol="ABCD")
To activate this rule, either both of the conditions around the AND operator (s.price > 10 and s.symbol = “XYZ”) must be met, or only the condition after the OR operator. The price of the stock topic event must be greater than 10 and its symbol must be XYZ, or the stock symbol of the stock topic event must be ABCD.
Use the OR operator ONLY between conditions for the same topic. For example, in the following rule, the OR operator applies only to the stock topic:
WHEN 1 stock s, 1 news n WITH s.symbol in n.title AND (s.symbol = "XYZ" OR s.symbol="ABCD")
When using the OR operator, all of the properties referenced in the conditions must exist in the events present in the system for RulePoint to evaluate a rule.

0 COMMENTS

We’d like to hear from you!