Hi,
<br/><br/>Exactly ! But when I want to test if the sliding windows work in both
<br/>cases (with end without Stream Mode), It doesn't work !!
<br/>for exemple:
<br/>"this is my rule"
<br/><br/>rule "sliding windows"
<br/>        when
<br/>                $a : Event1() over window:time(2s)
<br/>        then
<br/>                System.out.println("ok");                
<br/>end
<br/><br/>"these are mu events"
<br/><br/>Event1 ev1=new Event1((long)1,(long)2);  // the event will occur in 1s
<br/>and finish in 3s
<br/>Event1 ev2=new Event1((long)3,(long)4);  // the event will occur in 3s
<br/>and finish in 4s
<br/>session.insert(ev1);
<br/>session.insert(ev2);
<br/>clock.advanceTime(4, TimeUnit.SECONDS); // we are nom in 4s so only
<br/>event that happen in [2s,4s] have to fire -ev2-.
<br/>session.fireAllRules();
<br/>                        
<br/><br/>// But the probleme that, it gives me 2 ok so the 2 object are fired !!
<br/>I don't inderstand why ??
<br/><br/><br/><br/>2012/2/27 salaboy [via Drools] <<a href="/user/SendEmail.jtp?type=node&node=3780817&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>>:
<div class='shrinkable-quote'><br/>> If you are not using sliding windows and you are not expecting a retraction
<br/>> of your not relevant events, it will work.
<br/>> Cheers
<br/>>
<br/>> On Mon, Feb 27, 2012 at 12:06 PM, Wolfgang Laun <[hidden email]> wrote:
<br/>>>
<br/>>> All events have a timestamp.
<br/>>>
<br/>>> -W
<br/>>>
<br/>>>
<br/>>>
<br/>>> On 27/02/2012, Hassan <[hidden email]> wrote:
<br/>>> > Hi salaboy ,
<br/>>> >
<br/>>> > Thank for your reply,
<br/>>> >
<br/>>> > from the docs:
<br/>>> >
<br/>>> > */This mode does not impose any kind of additional requirements on
<br/>>> > facts. So
<br/>>> > for instance:
<br/>>> >
<br/>>> > There is no notion of time. No requirements clock synchronization.
<br/>>> > There is no requirement on event ordering. The engine looks at the
<br/>>> > events as
<br/>>> > an unnordered cloud against which the engine tries to match rules./*
<br/>>> >
<br/>>> >
<br/>>> >
<br/>>> > So the engine can not known if this event is after another, for exemple,
<br/>>> > Despite "After" work !!
<br/>>> >
<br/>>> > thanks !
<br/>>> >
<br/>>> > --
<br/>>> > View this message in context:
<br/>>> >
<br/>>> > <a href="http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780337.html" target="_top" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780337.html</a><br/>>> > Sent from the Drools: User forum mailing list archive at Nabble.com.
<br/>>> > _______________________________________________
<br/>>> > rules-users mailing list
<br/>>> > [hidden email]
<br/>>>
<br/>>> > <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br/>>> >
<br/>>> _______________________________________________
<br/>>> rules-users mailing list
<br/>>> [hidden email]
<br/>>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br/>>
<br/>>
<br/>>
<br/>>
<br/>> --
<br/>>  - CTO @ <a href="http://www.plugtree.com" target="_top" rel="nofollow" link="external">http://www.plugtree.com</a><br/>>  - MyJourney @ <a href="http://salaboy.wordpress.com" target="_top" rel="nofollow" link="external">http://salaboy.wordpress.com</a><br/>>  - Co-Founder @ <a href="http://www.jugargentina.org" target="_top" rel="nofollow" link="external">http://www.jugargentina.org</a><br/>>  - Co-Founder @ <a href="http://www.jbug.com.ar" target="_top" rel="nofollow" link="external">http://www.jbug.com.ar</a><br/>>
<br/>>  - Salatino "Salaboy" Mauricio -
<br/>>
<br/>>
<br/>> _______________________________________________
<br/>> rules-users mailing list
<br/>> [hidden email]
<br/>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br/>>
<br/>>
<br/>> ________________________________
<br/>> If you reply to this email, your message will be added to the discussion
<br/>> below:
<br/>> <a href="http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780514.html" target="_top" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780514.html</a><br/>> To unsubscribe from [rules-users] CLOUD mode Vs Stream Mode., click here.
<br/>> NAML
</div><br/><br/><br/>-- 
<br/>Youssef AZBAKH
<br/>Elève ingénieur en 3ème année informatique.
<br/>Institut National de Statiqtique et d'Economie Appliquée (INSEA).
<br/>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780817.html">Re: [rules-users] CLOUD mode Vs Stream Mode.</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>