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

Edson Tirelli ed.tirelli at gmail.com
Mon Nov 14 14:12:41 EST 2011


   Sorry, but which results exactly are you seeing?

   Edson

2011/11/14 Michael Anstis <michael.anstis at gmail.com>

> 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 solutions.endress.com>
> 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 lists.jboss.org
>
>
> 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 lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111114/6f74e6e8/attachment.html 


More information about the rules-users mailing list