[rules-users] Not able to call parameterizied Java method in LHS

Tinku dibya.tcs at gmail.com
Tue Sep 27 09:14:03 EDT 2011


I tried to invoke parameterizied call to the java method and tried to compare
the return parameter from the method in the 'eval' function..The rule is not
getting executed ..

I am not sure if it is unable to invoke the java method and fetch the return
parameter or there is an issue with rule syntax..

Please help me in this regard.

LHS of the rule :
**************************************
import com.customObject

rule A

when
$B : customObject()

eval($B.getValue("Database").equals("ORACLE"))

then

System.out.println("The database object is oracle")

end

--
View this message in context: http://drools.46999.n3.nabble.com/Not-able-to-call-parameterizied-Java-method-in-LHS-tp3372552p3372552.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list