Developing Apama Applications > Apama EPL Reference > Variables > Variable declarations > Reference-type variable declarations > Event variable declarations
Event variable declarations
Event variable declarations, unlike variables of other reference data types, do not begin with the keyword event, but instead begin with the EventTypeName that is part of the event definition that defines the event and its fields and actions. See Event definitions.
EventDeclaration
Examples
event etype1
{
   integer i;
}
 
event etype2
{
   boolean     b;
   integer     i;
   float       f;
   string      str;
   location    l;
   etype1      n;
}
 
etype2 e := etype2(true, -10, 1.73, "abc",
   location(1.0, 1.0, 5.0, 5.0), etype1 (1));
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.