Developing Apama Applications > EPL Reference > Variables > Variable declarations > Reference-type variable declarations > Event variable declarations
Event variable declarations
Event variable declarations, unlike variables of other reference 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-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.