[rules-users] drools variable

freejava freejava3 at gmail.com
Wed Dec 14 14:59:07 EST 2011


Hello,

I am a newbie to drools and I have a question on the 'drools' global (?)
variable.

rule "035"
      when 
	MessageBodyType($l : lineItems)
	eval(! dao.checkParty($l, "BY", drools))
      then
             appendMessage(drools)
end

In the above rule, when the checkParty method is called, I am getting a null
value for drools variable.
Whereas when the append message is called I am getting a
"DefaultKnowldgeHelper" object for drools variable.

Can I use 'drools' variable in the when part ?

Thanks for your help.




--
View this message in context: http://drools.46999.n3.nabble.com/drools-variable-tp3586514p3586514.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list