Where ever you prefer.<br><br>Since it is a transient class used to pass values between rules you could declare it in your DRL.<br><br>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.<br>
<br>My example was contrived and overly simple but it points you in the right direction.<br><br><div class="gmail_quote">On 15 November 2011 14:20, Zhao Yi <span dir="ltr"><<a href="mailto:zhaoyi0113@gmail.com">zhaoyi0113@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Where should I define the Output class, in Java code or drl file?<br>
<br>
How about if the Output is only a int or double value? Must I wrap the value<br>
into a Java class?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-use-a-temp-variable-accorss-multiple-rules-tp3509713p3509799.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-use-a-temp-variable-accorss-multiple-rules-tp3509713p3509799.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br>