Apama 10.3 | Apama Documentation | Developing Apama Applications | Developing Apama Applications in EPL | Working with Streams and Stream Queries | Defining streams | Creating streams from event templates
Creating streams from event templates
A stream can be created from an event template using the all keyword, including all any() to listen for events of all types. This is referred to as a stream source template.
stream<Tick> ticks := all Tick(symbol="APMA");
This creates a stream that contains all subsequent Tick events that have the symbol APMA. You can use any single event template this way, however, you must specify the all keyword and you cannot use operators such as and or followed-by to combine several event templates. See also Stream network lifetime.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.