Hi all,
I try to detect the beginning of a scenario which is characterized by an
event happening after no other event of the same type has happened in the
last 90sec.
I can't understand why only the first of those two rules is working.
rule "Detect Scenario beginning"
when
$start : RawEvent()
not RawEvent(id == $start.id, $start after[0ms, 90s] this)
then
System.out.println($start);
end
rule "Detect Scenario beginning alt"
when
$start : RawEvent()
not RawEvent(id == $start.id, this before[0ms, 90s] $start)
then
System.out.println($start);
end
Moreover if the first sent event is a rawEvent none of them will detect it.
Where am i wrong ? (still a beginner with drools)
PS : I already posted it on the forum, but i forgot to complete all the
subscription steps so it was rejected. Sorry for the double post.
--
View this message in context:
http://drools.46999.n3.nabble.com/before-after-behavior-for-negative-patt...
Sent from the Drools: User forum mailing list archive at
Nabble.com.