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/>&quot;this is my rule&quot;
<br/><br/>rule &quot;sliding windows&quot;
<br/>&nbsp; &nbsp; &nbsp; &nbsp; when
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $a : Event1() over window:time(2s)
<br/>&nbsp; &nbsp; &nbsp; &nbsp; then
<br/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println(&quot;ok&quot;);                
<br/>end
<br/><br/>&quot;these are mu events&quot;
<br/><br/>Event1 ev1=new Event1((long)1,(long)2); &nbsp;// the event will occur in 1s
<br/>and finish in 3s
<br/>Event1 ev2=new Event1((long)3,(long)4); &nbsp;// 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/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<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] &lt;<a href="/user/SendEmail.jtp?type=node&node=3780817&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;:
<div class='shrinkable-quote'><br/>&gt; If you are not using sliding windows and you are not expecting a retraction
<br/>&gt; of your not relevant events, it will work.
<br/>&gt; Cheers
<br/>&gt;
<br/>&gt; On Mon, Feb 27, 2012 at 12:06 PM, Wolfgang Laun &lt;[hidden email]&gt; wrote:
<br/>&gt;&gt;
<br/>&gt;&gt; All events have a timestamp.
<br/>&gt;&gt;
<br/>&gt;&gt; -W
<br/>&gt;&gt;
<br/>&gt;&gt;
<br/>&gt;&gt;
<br/>&gt;&gt; On 27/02/2012, Hassan &lt;[hidden email]&gt; wrote:
<br/>&gt;&gt; &gt; Hi salaboy ,
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; Thank for your reply,
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; from the docs:
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; */This mode does not impose any kind of additional requirements on
<br/>&gt;&gt; &gt; facts. So
<br/>&gt;&gt; &gt; for instance:
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; There is no notion of time. No requirements clock synchronization.
<br/>&gt;&gt; &gt; There is no requirement on event ordering. The engine looks at the
<br/>&gt;&gt; &gt; events as
<br/>&gt;&gt; &gt; an unnordered cloud against which the engine tries to match rules./*
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; So the engine can not known if this event is after another, for exemple,
<br/>&gt;&gt; &gt; Despite &quot;After&quot; work !!
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; thanks !
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; --
<br/>&gt;&gt; &gt; View this message in context:
<br/>&gt;&gt; &gt;
<br/>&gt;&gt; &gt; <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/>&gt;&gt; &gt; Sent from the Drools: User forum mailing list archive at Nabble.com.
<br/>&gt;&gt; &gt; _______________________________________________
<br/>&gt;&gt; &gt; rules-users mailing list
<br/>&gt;&gt; &gt; [hidden email]
<br/>&gt;&gt;
<br/>&gt;&gt; &gt; <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/>&gt;&gt; &gt;
<br/>&gt;&gt; _______________________________________________
<br/>&gt;&gt; rules-users mailing list
<br/>&gt;&gt; [hidden email]
<br/>&gt;&gt; <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/>&gt;
<br/>&gt;
<br/>&gt;
<br/>&gt;
<br/>&gt; --
<br/>&gt;  - CTO @ <a href="http://www.plugtree.com" target="_top" rel="nofollow" link="external">http://www.plugtree.com</a><br/>&gt;  - MyJourney @ <a href="http://salaboy.wordpress.com" target="_top" rel="nofollow" link="external">http://salaboy.wordpress.com</a><br/>&gt;  - Co-Founder @ <a href="http://www.jugargentina.org" target="_top" rel="nofollow" link="external">http://www.jugargentina.org</a><br/>&gt;  - Co-Founder @ <a href="http://www.jbug.com.ar" target="_top" rel="nofollow" link="external">http://www.jbug.com.ar</a><br/>&gt;
<br/>&gt;  - Salatino &quot;Salaboy&quot; Mauricio -
<br/>&gt;
<br/>&gt;
<br/>&gt; _______________________________________________
<br/>&gt; rules-users mailing list
<br/>&gt; [hidden email]
<br/>&gt; <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/>&gt;
<br/>&gt;
<br/>&gt; ________________________________
<br/>&gt; If you reply to this email, your message will be added to the discussion
<br/>&gt; below:
<br/>&gt; <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/>&gt; To unsubscribe from [rules-users] CLOUD mode Vs Stream Mode., click here.
<br/>&gt; 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/>