How to distribute expressions in other EPL files?
I tried but there are two problems need to see.
1. Any EPL file cannot contain only 'Expression'.('Unexpected end' error)
2. Accessing expression defined in another EPL file, gives 'not found' error.
Here is my attempt:
//epl1.epl
module eplTest;
expression twoPI
{
3.141 * 2
}
//epl2.epl
module eplTestmain;
uses SampleEvent;
uses eplTest;
select twoPI() from SampleEvent;
I am using netbeans.
It will be also useful if I get how to create single row function in epl?
there is no "create expression" syntax in Esper EPL currently, expressions are statement-local and not currently globabaly declarable