What do you get when you omit the eval and print the return value of
$B.getValue("Database")?
-W
On 27 September 2011 15:14, Tinku <dibya.tcs(a)gmail.com> wrote:
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-me...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users