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">&lt;<a href="mailto:javatestcase@yahoo.com">javatestcase@yahoo.com</a>&gt;</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&#39;ve been struggling for a while and thought I&#39;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 &quot;true&quot; I can&#39;t get any of variation to compile.<br>
 <br>
(true ? &quot;1000&quot; : &quot;0&quot;)<br>
**produces**<br>
Unable to build expression for &#39;salience&#39; : not a statement, or badly formed structure<br>
 <br>
( true ? 1000 : 0)<br>
**produces**<br>
Unable to build expression for &#39;salience&#39; : invalid number literal: 1000<br>
 <br>
salience ( getSalience() )<br>
...<br>
function int getSalience(){return 0;}<br>
**produces**<br>
Unable to build expression for &#39;salience&#39; : org.mvel2.util.MethodStub cannot be cast to java.lang.Class&#39;( getSalienceNONCDW() )&#39;<br>
 <br>
Seems like I am missing something simple, but I&#39;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>