No, but it was mentioned on irc today that you can work around by creating a global and assigning your working memory to it. Use the global in your LHS.

sent on the move

On 14 Dec 2011 19:59, "freejava" <freejava3@gmail.com> wrote:

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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users