Drools窗口事件处理

时间:2014-01-02 07:22:07

标签: java drools drools-fusion

我无法理解drools窗口对于事件关联所需的行为,我的意思是我想计算在过去10秒内在引擎中插入数量属性的对象总数。

这是我的规则模式:

     Number( intValue >1000) from accumulate(Test( $p:price ) over window:time( 10s ),sum( $p ) )

它给出了编译错误:

Rule Compilation error : [Rule name='Example 1']
com/retailerdev/rules/Rule_Example_1.java (15:660) : $p cannot be resolved to a variable

请帮助。谢谢提前

0 个答案:

没有答案
相关问题