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

equalsSet

equalsSet

The equalsSet operator verifies that event sets have the same members as a comparison set, regardless of their order.
The equalsSet operator returns true if the set on the left side contains all the elements in the set on the right-hand side. The two sides also must be equal in size.
For example, the following rule checks if you can find all the elements of the stock symbol set in the comma delimited string list (the right operand):
WHEN 3 stock s WITH s.symbol equalsSet "XYZ, ABCD, EFG" then response
The following rule checks if you can find all of the elements of the stock symbol set in the comma delimited string list (the left operand):
WHEN 3 stock s WITH "XYZ, ABCD, EFG" equalsSet s.symbol then response
The following rule checks whether all of the elements in the p.first_name set contains all of the items in the list returned by the SQL analytic:
WHEN 2 person p WITH p.first_name equalsSet getPersonSql("EmployeeList") then response
The equalsSet operator returns true if the size of the list returned by the SQL analytic is equal to
p.first_name set size (size=2)
, and if the set and list contain the same elements.
The equalsSet operator is similar to the contains operator except that you can place a comma delimited string list on the right-hand side.

0 COMMENTS

We’d like to hear from you!