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

File Output Response Example

File Output Response Example

In the following example, assuming Stock stock has a symbol XYZ. The contents
Buy XYZ
is added to the file. You can run the response with its default values using the following syntax:
WHEN 2 stock THEN FileOutputDemo with Contents="Buy ${symbol}", mode="append"
In this DRQL,
FileOutputDemo
is the name of the response.
The following example shows how to create and add the symbol, price, volume, and the last trading time of a stock to a file:
WHEN 1 stock THEN FileOutputDemo with file="/stocks/${symbol}.txt", contents="At closing time ${lastTradeTime}, the price of Stock ${symbol} was ${price} and volume was ${volume}", mode="append"

0 COMMENTS

We’d like to hear from you!