You must not use this:
eval( boolBrandName && boolProviderState && boolDrugStrength )
since changes in global variables are not visible to the Drools rule engine.
But you don't need this eval(...) line, since you have
rule "Brand Name"
rule "Provider State" extends "Brand Name"
rule "Drug Strength" extends "Provider State"
rule "Check" extends "Drug Strength"
and therefore "Check" will not fire unless "Drug Strength" fires;
"Drug Strength" will not fire unless "Provider State" fires;
"Provider State" will not fire unless "Brand Name" fires.
-W
On 17/08/2012, Rana <ven12344(a)yahoo.com> wrote:
ok I have done this, please find the rule file
http://drools.46999.n3.nabble.com/file/n4019241/Rule.txt Rule.txt
But it is still not setting the values for Program Fact in the rule file. I
am getting null as output. Do I need to return that object. If yes please
let me know and how can I get that back from WorkingMemory that I am using.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/modify-and-update-is-not-working-in-the...
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