This is handled by simply using the "before" temporal operator:
$e1: Event1()
$e2: Event2( this before $e1 )
-W
On 6 October 2011 19:09, tungl <martin(a)seafoid.org> wrote:
Thanks Vincent, but when I do it like this:
It's sufficient that EVENT2 has happened anywhere before EVENT1.
So EVENT1, EVENT2 => false, false
EVENT2, EVENT1 => false, true (that's right, but:)
EVENT2, EVENT1, EVENT1 => false, true, true (?)
How do I fix that?
--
View this message in context:
http://drools.46999.n3.nabble.com/Get-previous-fact-from-working-memory-t...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users