[rules-users] Truth maintenance and RHS variables

Wolfgang Laun wolfgang.laun at gmail.com
Wed Feb 8 13:03:45 EST 2012


Well, we'll have to look at the code, all of it.
-W

On 8 February 2012 18:36, juankera <juankera at gmail.com> wrote:

> Sorry... big mistake. I forgot to mention that i'm inserting one StateEvent
> after each rules firing.
>
> So, these are the correct steps:
>
> 1. I'm working with stateful session (no clocks, entry-points or events for
> now).
> 2. I insert one StateEvent fact into working memory
> 3. Rules are fired.
> 4. I can see "yikes¡" in console
> 5. Nothing happens after that.
> 2. I insert one new StateEvent fact into working memory (from code)
> 6. Rules are fired again
> 7. I can see "yikes¡" in console
> 8. Nothing happens after that.
>
> Anyway, my code is as simple as that:
>
> (..)
> ksession.insert((RuleEvent) new StateEvent(item, state));
> ksession.fireAllRules();
> ksession.insert((RuleEvent) new StateEvent(item, state));
> ksession.fireAllRules();
> (...)
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-Truth-maintenance-and-RHS-variables-tp3722632p3726783.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120208/d198fef8/attachment.html 


More information about the rules-users mailing list