Developing Apama Applications > Developing Apama Applications in EPL > Defining What Happens When Matching Events Are Found > Using variables
Using variables
EPL supports the use of variables in monitors. Depending on where in the monitor you declare a variable, that variable is global or local:
*Global — Variables declared in monitors and not inside actions or events are global variables. Global variables are in monitor scope.
*Local — Variables declared inside actions are local variables. Local variables are in action scope.
A variable can be of any of the following types: boolean, decimal, float, integer, string, action, context, dictionary, event, listener, location, sequence or stream. For details about these types, see Types in the Apama EPL Reference. Information about variables is presented in the following topics:
See also, Using action type variables.
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.