It's up to you, wherever is most convenient. For primitives you would have to wrap it in an object though.
Thomas > -----Original Message----- > From: [email protected] [mailto:rules-users- > [email protected]] On Behalf Of Zhao Yi > Sent: 15 November 2011 14:21 > To: [email protected] > Subject: Re: [rules-users] How to use a temp variable accorss multiple rules? > > 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 > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users ************************************************************************************** This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [email protected] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00 ************************************************************************************** _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
