<p>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.</p>
<p>sent on the move</p>
<p>On 14 Dec 2011 19:59, &quot;freejava&quot; &lt;<a href="mailto:freejava3@gmail.com">freejava3@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I am a newbie to drools and I have a question on the &#39;drools&#39; global (?)<br>
variable.<br>
<br>
rule &quot;035&quot;<br>
      when<br>
        MessageBodyType($l : lineItems)<br>
        eval(! dao.checkParty($l, &quot;BY&quot;, drools))<br>
      then<br>
             appendMessage(drools)<br>
end<br>
<br>
In the above rule, when the checkParty method is called, I am getting a null<br>
value for drools variable.<br>
Whereas when the append message is called I am getting a<br>
&quot;DefaultKnowldgeHelper&quot; object for drools variable.<br>
<br>
Can I use &#39;drools&#39; variable in the when part ?<br>
<br>
Thanks for your help.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/drools-variable-tp3586514p3586514.html" target="_blank">http://drools.46999.n3.nabble.com/drools-variable-tp3586514p3586514.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>