Drools windowed event processing

355 Views Asked by At

I can not understand the behavior of drools windows that i need for correlation of events, i mean i want to calculate the total amount of Objects with amount property inserting in engine over last 10 secs.

Here is my rule pattern:

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

It gives a compilation error:

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

Please help .Thanks in advance

0

There are 0 best solutions below