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. This is referred to as a stream source template. For example:
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 any operators such as and or followed-by to combine several event templates. See also Stream network lifetime.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback