The condition for "some A and only the immediate successor of type B" must
be written as
$b: EventB( this after $a )
not EventB( this after $a, this before $b )
On 6 November 2012 01:58, michal.antolik <michal.antolik(a)siemens.com> wrote:
I have a temporal pattern like
*A after B*
and a stream as
and if I define a pattern simply as
$b: Event(this after $a)
I'll get matches like (A1,B1),(A1,B2),(A1,B3),(A1,B4),...
However I care about first match only and then I want to reset the pattern
so the next one would be (A2,B6).
Can you please advice how to achieve that? I don't want to do the
deduplication by myself and most importantly I could achieve much better
performance if I could expire partial matches (I cannot expire event since
it might be used by other patterns)
Thanks a lot for help.
View this message in context:
Sent from the Drools: User forum mailing list archive at Nabble.com
rules-users mailing list