[rules-users] Updation of variables within rule table and use of it in other rule table
Wolfgang Laun
wolfgang.laun at gmail.com
Fri Jul 13 02:00:10 EDT 2012
Two options when using update or modify:
(a) add a Condition x,b == null (or some other value representing
"undefined") to the rule in X
(b) add rule attribute "no-loop true" to the rule in X
-W
On 13/07/2012, debchamps <majumdar.debarghya at gmail.com> wrote:
> RuleTable X
> Condition Action
> x.a == $1 x.b = $param
> 1 2
>
>
> RuleTable Y
> Condition Action
> x.b == $param System.out.println("HELLO")
> 2
>
> Now both this rules are in same xls file. So what I want is the b to get
> updated when RuleTable X is used and when RuleTable Y is used the updation
> should reflect when the rules are getting executed.
>
> Is there any way of doing it. I did update() but ended up in infinite loop.
>
> Thanks
>
>
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Updation-of-variables-within-rule-table-and-use-of-it-in-other-rule-table-tp4018647.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