Apama 10.7.2 | 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.
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 operators such as and or followed-by to combine several event templates. See also Stream network lifetime.