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 One Property Value in an Event Set

Referencing One Property Value in an Event Set

When using event sets with multiple values for a single property, you can display the property value for one of the events in the set using the following syntax:
${[topicProperty]([n])}
or
${[topicAlias].[topicProperty]([n])}
or
${[topicName].[topicProperty]([n])}
Here,
topicAlias
is the name of the alias that you assign to a topic, such as s for stock.
topicName
is the name of the topic,
topicProperty
is the name of the event property, and
n
is the number of the event in the set for which you want output.
Rules maintain the order of events from the latest to the oldest.
For example, the following rule specifies that the body of the response which will display the three prices of the XYZ stock event s matched by this rule:
WHEN 3 stock s WITH symbol = "XYZ" AND price < 90 THEN EmailBrokerResponse WITH to="broker@company.com", body="XYZ is trading at the following prices. One price is ${s.price(1)}, another price is ${s.price(2)}, and the final price is ${s.price(3)}."
Here, ${s.price(1)},${s.symbol(1)} is the value of latest event and ${s.price(3)},${s.symbol(3)} has the value of the oldest event.

0 COMMENTS

We’d like to hear from you!