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 All Property Values in an Event Map

Referencing All Property Values in an Event Map

When using event sets with multiple values for a single property, you can display all the property values for each event in the set. You can also specify the format in which you want to display the values.
You can define this information in your rule using one of the following syntax:
${[topicProperty](*, [Format])}
Use this option only if there is a single topic.
or
${[topicAlias].[topicProperty](*, [Format])}
or
${[topicName].[topicProperty](*, [Format])}
Here,
topicAlias
is the name of the alias that you assign to the topic, such as s for stock.
topicName
is the name of the topic,
topicProperty
is the name of the event property, and
Format
is the format to use when displaying the values in the response. The default output format is a space separated list of string values.
If you want to change the default output format, specify one of the formats using its format code as shown in the following table:
Format Code
Display Format
TAB
Tab separated list of string values, where <TAB> is the tab character.
For example:
ABCD<TAB>EFG<TAB>XYZ
COMMA
Comma separated list of string values.
For example:
ABCD,EFG,XYZ
NL
New line separated list of values. For example:
  • ABCD
  • EFG
COLON
Colon separated list of string values.
For example:
ABCD:EFG:XYZ
XML
<propertyname id=nnnn>value</propertyname>
Here,
nnnn
is the array index of this element, starting from one and incrementing by one.
For example, if the response contains three events, the first event into the system is numbered 1. The XML format for these events would be as follows:
<symbol id=1>ABCD</symbol> <symbol id=2>EFG</symbol> <symbol id=3>XYZ</symbol>
BR
HTML break separated list of string values, where <BR> is the HTML break tag.
For example:
ABCD<BR>EFG<BR>XYZ
For example, the following rule specifies that the body of the response that displays all the prices of the XYZ stock event s matched by this rule:
WHEN 1 stock WITH symbol = "XYZ" AND price < 90 THEN EmailBrokerResponse WITH to="broker@company.com", body="XYZ is trading at ${price(*,COMMA)}"
Consider that the six stock events received from the source had price values of 72, 75, 71, 72, 74, and 73. The result of this rule is an email containing “XYZ is trading at 73,74,72,71,75,72”.

0 COMMENTS

We’d like to hear from you!