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+s46999n3780514h85(a)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-t...
> > 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-t...
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-t...
Sent from the Drools: User forum mailing list archive at
Nabble.com.