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

Wolfgang Laun wolfgang.laun at gmail.com
Tue Sep 27 09:41:33 EDT 2011


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 at 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-method-in-LHS-tp3372552p3372552.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110927/2e58f7e5/attachment.html 


More information about the rules-users mailing list