[rules-users] Fwd: 5.3.0 Final - Rule using accumulate with windows:length delivers an unexpected result

axel axel.poeschmann at solutions.endress.com
Tue Nov 15 03:27:02 EST 2011


Hi Edson,

The detailed description including test data is in my original thread,  see 
http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-td3489548.html
http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-td3489548.html 

If you need additional information, please let me know.

Thanks,

Axel


Edson Tirelli-4 wrote:
> 
> Sorry, but which results exactly are you seeing?
> 
>    Edson
> 
> 2011/11/14 Michael Anstis <michael.anstis@>
> 
>> I'd have to defer to the drools-expert people.. as the problem appears to
>> be with 5.3.0.Final of drools-expert.
>>
>> As a reminder, the DRL failing in 5.3.0.Final (or giving different
>> results
>> to 5.2.0?) is:-
>>
>> rule "Event Processing Evaluation"
>>  dialect "mvel"
>> when
>>    $list:java.util.List() from collect( evalEvent(wam == 'D1', f !=
>> null)over window:length( 1 ))
>>     $average:Double() from accumulate( evalEvent($vf:f) from
>>    $list,average($vf) )
>>    eval($average > 5)
>> then
>>    internalEvent fact0 = new internalEvent();
>>    fact0.setDesrc( "Internal Event: "+ $average );
>>    insert(fact0 );
>> end
>>
>> ---------- Forwarded message ----------
>> From: axel <axel.poeschmann at .endress>
>> Date: 14 November 2011 08:16
>> Subject: Re: [rules-users] Guvnor (5.3.0 Final)- Rule using accumulate
>> with windows:length delivers an unexpected result
>> To: rules-users at .jboss
>>
>>
>> Thanks Mike.
>>
>> So, now I've included Drools 5.3.0 Final in my Eclipse Drools Project too
>> and discovered the same problem as in Guvnor with my example. There is a
>> difference between 5.2.0 Final (works well) and 5.3.0 Final (fails) in my
>> case.
>>
>> Is there a major change with event processing with sliding windows or is
>> it
>> a just bug in the new version?
>>
>> The DRL between Eclipse and Guvnor is the same, in principle. It means, I
>> started the project within Guvnor using the build features with the
>> Editor
>> supporting creating a model in Guvnor and the business rule. These two
>> files, I couldn't reuse in my Eclipse project 1:1 (I used New File from
>> Guvnor Ressource in Eclipse for that), failed to compile and even to open
>> for the brl-file. So, I made the same model as Java Classes and a new DRL
>> in
>> Eclipse copy the stuff from the Guvnors view source windows adding the
>> includes for the Java model and adding the Event declaration by hand. By
>> the
>> way, are there any other hints for that ...
>>
>> With regards,
>>
>> Axel
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/rules-users-Guvnor-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-resut-tp3489548p3506191.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at .jboss
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at .jboss
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
> 
> 
> -- 
>   Edson Tirelli
>   JBoss Drools Core Development
>   JBoss by Red Hat @ www.jboss.com
> 
> _______________________________________________
> rules-users mailing list
> rules-users at .jboss
> https://lists.jboss.org/mailman/listinfo/rules-users
> 


--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Fwd-5-3-0-Final-Rule-using-accumulate-with-windows-length-delivers-an-unexpected-result-tp3506213p3509009.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list