Which version of drools are you using? Try to rename your method to calculate() (lower case &#39;c&#39;).<div><br></div><div>Best,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>

- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Mon, Dec 27, 2010 at 5:24 AM, wasim.khan318 <span dir="ltr">&lt;<a href="mailto:khanwasim07@yahoo.co.in">khanwasim07@yahoo.co.in</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
i have a table in database Contain itemId and Item Price  suppose i want to<br>
do that<br>
public  class Applicant<br>
{<br>
private  int ItemId;<br>
public static int Calculate(ItemId id)<br>
{<br>
// here i have written code to find item price and apply some  formula for<br>
adding tax<br>
<br>
<br>
and return prices<br>
}<br>
<br>
<br>
}<br>
<br>
when i importing this class in guvnor  application . in technical rule<br>
editor.  under fact field it is not showing<br>
Calculate as a fact<br>
i want to write<br>
when<br>
100&lt;(Calculate(1))<br>
then<br>
//// some rule<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-Fact-field-tp2150854p2150854.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-Fact-field-tp2150854p2150854.html</a><br>


Sent from the Drools - User 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></div>