Apama 10.15.0 | Developing Apama Applications | EPL Reference | Variables | Provided variables | self
 
self
The predefined variable self is an event reference that can be used to refer to an event instance within the event's definition.
Within an event action body, you can use the self variable to refer an event instance of that event type. In other words, the scope of self is each action body in the event definition. For example:
event Circle
{
float radius;

action circumference() returns float
{
return (2.0 * float.PI * self.radius);
}

action area() returns float
{
// Note the use of "radius" is equivalent to
// "self.radius" in the statement below.
return (float.PI * radius * self.radius);
}
}
Note: 
You cannot use the self variable in a static action.