[rules-users] How to use a temp variable accorss multiple rules?
Michael Anstis
michael.anstis at gmail.com
Tue Nov 15 09:30:16 EST 2011
Where ever you prefer.
Since it is a transient class used to pass values between rules you could
declare it in your DRL.
However If the output has some value in your domain model there is an
argument to have it as a member of your domain model.
My example was contrived and overly simple but it points you in the right
direction.
On 15 November 2011 14:20, Zhao Yi <zhaoyi0113 at gmail.com> wrote:
> Where should I define the Output class, in Java code or drl file?
>
> How about if the Output is only a int or double value? Must I wrap the
> value
> into a Java class?
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-use-a-temp-variable-accorss-multiple-rules-tp3509713p3509799.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/20111115/28d1d0ee/attachment.html
More information about the rules-users
mailing list