如何在其他 EPL 文件中分发表达式?
我试过了,但有两个问题需要看。
1. 任何 EPL 文件不能只包含“表达式”。(“意外结束”错误)
2. 访问另一个 EPL 文件中定义的表达式,给出“未找到”错误。
这是我的尝试:
//epl1.epl
module eplTest;
expression twoPI
{
3.141 * 2
}
//epl2.epl
module eplTestmain;
uses SampleEvent;
uses eplTest;
select twoPI() from SampleEvent;
我正在使用netbeans。
如果我知道如何在 epl 中创建单行函数
也会很有用?