[rules-users] CLOUD mode Vs Stream Mode.
Hello, It's clair that to work with thae events we have to put our base configuration into STREAM mode like this: */KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); config.setOption( EventProcessingOption.STREAM );/* But in my code bellow I didn't use this mode and I didn't use Entry-points, Although my events work very well !! Help please !! -- View this message in context: http://drools.46999.n3.nabble.com/CLOUD-mode-Vs-Stream-Mode-tp3780295p3780295.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] CLOUD mode Vs Stream Mode.
Hello, It's clair that to work with thae events we have to put our base configuration into STREAM mode like this: */KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); config.setOption( EventProcessingOption.STREAM );/* But in an exemple, I didn't use this mode and I didn't use Entry-points, Although my events work very well !! Help please !! -- View this message in context: http://drools.46999.n3.nabble.com/CLOUD-mode-Vs-Stream-Mode-tp3780297p3780297.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CLOUD mode Vs Stream Mode.
Hi, What exactly are you doing with events? I think that the temporal operators will work as expected. If you are working in cloud mode you will not have sliding windows, the concept of now and events lifecycle managements as stated in the docs. Cheers On Mon, Feb 27, 2012 at 10:51 AM, Hassan azbak...@gmail.com wrote: Hello, It's clair that to work with thae events we have to put our base configuration into STREAM mode like this: */KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(); config.setOption( EventProcessingOption.STREAM );/* But in my code bellow I didn't use this mode and I didn't use Entry-points, Although my events work very well !! Help please !! -- View this message in context: http://drools.46999.n3.nabble.com/CLOUD-mode-Vs-Stream-Mode-tp3780295p3780295.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CLOUD mode Vs Stream Mode.
Hi salaboy , Thank for your reply, from the docs: */This mode does not impose any kind of additional requirements on facts. So for instance: There is no notion of time. No requirements clock synchronization. There is no requirement on event ordering. The engine looks at the events as an unnordered cloud against which the engine tries to match rules./* So the engine can not known if this event is after another, for exemple, Despite After work !! thanks ! -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780337.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CLOUD mode Vs Stream Mode.
All events have a timestamp. -W On 27/02/2012, Hassan azbak...@gmail.com wrote: Hi salaboy , Thank for your reply, from the docs: */This mode does not impose any kind of additional requirements on facts. So for instance: There is no notion of time. No requirements clock synchronization. There is no requirement on event ordering. The engine looks at the events as an unnordered cloud against which the engine tries to match rules./* So the engine can not known if this event is after another, for exemple, Despite After work !! thanks ! -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780337.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CLOUD mode Vs Stream Mode.
If you are not using sliding windows and you are not expecting a retraction of your not relevant events, it will work. Cheers On Mon, Feb 27, 2012 at 12:06 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote: All events have a timestamp. -W On 27/02/2012, Hassan azbak...@gmail.com wrote: Hi salaboy , Thank for your reply, from the docs: */This mode does not impose any kind of additional requirements on facts. So for instance: There is no notion of time. No requirements clock synchronization. There is no requirement on event ordering. The engine looks at the events as an unnordered cloud against which the engine tries to match rules./* So the engine can not known if this event is after another, for exemple, Despite After work !! thanks ! -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780337.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CLOUD mode Vs Stream Mode.
Hi, Exactly ! But when I want to test if the sliding windows work in both cases (with end without Stream Mode), It doesn't work !! for exemple: this is my rule rule sliding windows when $a : Event1() over window:time(2s) then System.out.println(ok); end these are mu events Event1 ev1=new Event1((long)1,(long)2); // the event will occur in 1s and finish in 3s Event1 ev2=new Event1((long)3,(long)4); // the event will occur in 3s and finish in 4s session.insert(ev1); session.insert(ev2); clock.advanceTime(4, TimeUnit.SECONDS); // we are nom in 4s so only event that happen in [2s,4s] have to fire -ev2-. session.fireAllRules(); // But the probleme that, it gives me 2 ok so the 2 object are fired !! I don't inderstand why ?? 2012/2/27 salaboy [via Drools] ml-node+s46999n3780514...@n3.nabble.com: If you are not using sliding windows and you are not expecting a retraction of your not relevant events, it will work. Cheers On Mon, Feb 27, 2012 at 12:06 PM, Wolfgang Laun [hidden email] wrote: All events have a timestamp. -W On 27/02/2012, Hassan [hidden email] wrote: Hi salaboy , Thank for your reply, from the docs: */This mode does not impose any kind of additional requirements on facts. So for instance: There is no notion of time. No requirements clock synchronization. There is no requirement on event ordering. The engine looks at the events as an unnordered cloud against which the engine tries to match rules./* So the engine can not known if this event is after another, for exemple, Despite After work !! thanks ! -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780337.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users -- - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jugargentina.org - Co-Founder @ http://www.jbug.com.ar - Salatino Salaboy Mauricio - ___ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users If you reply to this email, your message will be added to the discussion below: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780514.html To unsubscribe from [rules-users] CLOUD mode Vs Stream Mode., click here. NAML -- Youssef AZBAKH Elève ingénieur en 3ème année informatique. Institut National de Statiqtique et d'Economie Appliquée (INSEA). -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780817.html Sent from the Drools: User forum mailing list archive at Nabble.com.___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] CLOUD mode Vs Stream Mode.
I wanna just rectify Event1 ev1=new Event1((long)1000,(long)2000); // occur in 1s and finishes in 2s Event1 ev2=new Event1((long)3000,(long)4000); // occur in 3s and finishes in 4s thanks :) -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-CLOUD-mode-Vs-Stream-Mode-tp3780299p3780882.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users