[rules-users] drools variable

Michael Anstis michael.anstis at gmail.com
Wed Dec 14 15:09:50 EST 2011


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20111214/68ec5ad8/attachment.html 


More information about the rules-users mailing list