What do you get when you omit the eval and print the return value of $B.getValue(&quot;Database&quot;)?<br>-W<br><br><div class="gmail_quote">On 27 September 2011 15:14, Tinku <span dir="ltr">&lt;<a href="mailto:dibya.tcs@gmail.com">dibya.tcs@gmail.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;">I tried to invoke parameterizied call to the java method and tried to compare<br>
the return parameter from the method in the &#39;eval&#39; function..The rule is not<br>
getting executed ..<br>
<br>
I am not sure if it is unable to invoke the java method and fetch the return<br>
parameter or there is an issue with rule syntax..<br>
<br>
Please help me in this regard.<br>
<br>
LHS of the rule :<br>
**************************************<br>
import com.customObject<br>
<br>
rule A<br>
<br>
when<br>
$B : customObject()<br>
<br>
eval($B.getValue(&quot;Database&quot;).equals(&quot;ORACLE&quot;))<br>
<br>
then<br>
<br>
System.out.println(&quot;The database object is oracle&quot;)<br>
<br>
end<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Not-able-to-call-parameterizied-Java-method-in-LHS-tp3372552p3372552.html" target="_blank">http://drools.46999.n3.nabble.com/Not-able-to-call-parameterizied-Java-method-in-LHS-tp3372552p3372552.html</a><br>

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>
</font></blockquote></div><br>