[rules-users] Multi-function Accumulates
Hello everybody I don't know why the Multi-function Accumulates doesn't work, I m just copying the code given in he documentation rule Max, min and average when accumulate( Cheese( $price : price ), $max : max( $price ), $min : min( $price ), $avg : average( $price ) ) then System.out.println($max+ +$min+ +$avg); end But it gives me some problems !! - Youssef AZBAKH. -- View this message in context: http://drools.46999.n3.nabble.com/Multi-function-Accumulates-tp3867251p3867251.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Multi-function Accumulates
OK, so you don't tell us what your problems are, but why did you write this post? -W On 29/03/2012, Hassan azbak...@gmail.com wrote: Hello everybody I don't know why the Multi-function Accumulates doesn't work, I m just copying the code given in he documentation rule Max, min and average when accumulate( Cheese( $price : price ), $max : max( $price ), $min : min( $price ), $avg : average( $price ) ) then System.out.println($max+ +$min+ +$avg); end But it gives me some problems !! - Youssef AZBAKH. -- View this message in context: http://drools.46999.n3.nabble.com/Multi-function-Accumulates-tp3867251p3867251.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Multi-function Accumulates
Hi, the problem is eclipse give some errors like: [ERR 102] Line 156:8 mismatched input 'ACCUMULATE' expecting 'then' in rule Max, min and average Regle1.drl $price cannot be resolved to a variable ...etc Even the results are correctly shown - Youssef AZBAKH. -- View this message in context: http://drools.46999.n3.nabble.com/Multi-function-Accumulates-tp3867251p3867406.html Sent from the Drools: User forum mailing list archive at Nabble.com.___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Multi-function Accumulates
Seems to be an old eclipse plugin. Update with the one from the Drools version you are using. -W On 29/03/2012, Hassan azbak...@gmail.com wrote: Hi, the problem is eclipse give some errors like: [ERR 102] Line 156:8 mismatched input 'ACCUMULATE' expecting 'then' in rule Max, min and average Regle1.drl $price cannot be resolved to a variable ...etc Even the results are correctly shown - Youssef AZBAKH. -- View this message in context: http://drools.46999.n3.nabble.com/Multi-function-Accumulates-tp3867251p3867406.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Multi-function Accumulates
Ok it will be done soon :) - Youssef AZBAKH. -- View this message in context: http://drools.46999.n3.nabble.com/Multi-function-Accumulates-tp3867251p3867846.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users