Which version of drools are you using? Try to rename your method to calculate() (lower case 'c').

Best,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


On Mon, Dec 27, 2010 at 5:24 AM, wasim.khan318 <khanwasim07@yahoo.co.in> wrote:

i have a table in database Contain itemId and Item Price  suppose i want to
do that
public  class Applicant
{
private  int ItemId;
public static int Calculate(ItemId id)
{
// here i have written code to find item price and apply some  formula for
adding tax


and return prices
}


}

when i importing this class in guvnor  application . in technical rule
editor.  under fact field it is not showing
Calculate as a fact
i want to write
when
100<(Calculate(1))
then
//// some rule
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-Fact-field-tp2150854p2150854.html
Sent from the Drools - User mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users