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

Referencing a Range of Properties from an Event Set

Referencing a Range of Properties from an Event Set

When using event sets with multiple values for a single property, you can display more than one property value for each event in the set.
You can define the data in a rule using the following syntax:
${[TopicName].[TopicProperty](n:m, [format])}
Here,
n
represents the offset within the range of events, and
m
represents the count of events starting from the offset. For example, five events from the latest to the oldest are e5,e4,e3,e2,e1 and the notation is 2:4. The formatting starts from 2 (e4) and the count of the four events (e4,e3 ,e2 and e1) are considered for the formatting.
The following rule emails a broker with the last two out of three prices, separated by a comma:
WHEN 3 stock s WITH symbol = "XYZ" AND price < 90 THEN EmailBrokerResponse WITH to="broker@company.com", body="The last two prices of XYZ are ${s.price(2:3,COMMA)}."

0 COMMENTS

We’d like to hear from you!