does this work?<br>salience ( return getSalience() )<br><br>or this:<br><br>salience ( getSalience();)<br><br><br><div class="gmail_quote">On Tue, Sep 1, 2009 at 6:50 PM, Bill Tarr <span dir="ltr"><<a href="mailto:javatestcase@yahoo.com">javatestcase@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Possibily just a simple MVEL error, but I've been struggling for a while and thought I'd see if anyone could help.<br>
 <br>
I just want to run a logic test to determine salience for some rules I am generating with rules-templates.  Even after making the logical test "true" I can't get any of variation to compile.<br>
 <br>
(true ? "1000" : "0")<br>
**produces**<br>
Unable to build expression for 'salience' : not a statement, or badly formed structure<br>
 <br>
( true ? 1000 : 0)<br>
**produces**<br>
Unable to build expression for 'salience' : invalid number literal: 1000<br>
 <br>
salience ( getSalience() )<br>
...<br>
function int getSalience(){return 0;}<br>
**produces**<br>
Unable to build expression for 'salience' : org.mvel2.util.MethodStub cannot be cast to java.lang.Class'( getSalienceNONCDW() )'<br>
 <br>
Seems like I am missing something simple, but I've tried many variations on the above, and have been unable to find any working examples of using a logical test in salience, so if anyone has any direction it would be greatly appreciated.<br>
 <br>
Thanks!<br>
 <br>
Bill<br>
<br>
<br>
<br>
<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>
</blockquote></div><br>