[rules-users] Get previous fact from working memory.

Wolfgang Laun wolfgang.laun at gmail.com
Thu Oct 6 05:02:54 EDT 2011


This depends on how you represent "current" and "previous" in your
fact/event objects.
-W


On 6 October 2011 10:58, tungl <martin at seafoid.org> wrote:
> Hello everyone,
>
> I think my problem is quite simple, but still, I can't come up with a
> solution.
> What I want to do is compare the last fact with the current one and I'm
> wondering how
> to do that.
>
>
>
> That's how I check if the EventType of the current Event is EVENT1. What I
> want to do now is check if the EventType of the current Event is EVENT1 and
> EventType of the previous Event is EVENT2. How can I do that?
>
> Thanks very much in advance,
> Martin
>
> --
> View this message in context: http://drools.46999.n3.nabble.com/Get-previous-fact-from-working-memory-tp3399064p3399064.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list