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 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.