[rules-users] getInfo(return).equals("TEST") function is not working as expected

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jun 12 09:09:49 EDT 2012


If method getInfo() returns the value of some field of a fact (object)
you can simply write

   FactType( info == "TEST" )


What you quote from your code isn't likely to be correct; it's
certainly incomplete and, therefore, no basis for constructive
remarks.
-W



On 12/06/2012, vysrinivas <vysrinivas at gmail.com> wrote:
> Hi,
>
> i have below condition in my drools file.
>
> getInfo(return).equals("TEST") function is not working as expected
>
>
> getInfo function will return a string value. If it is equal to "TEST", then
> i should not do further validation.
>
> can you please let me know what might be the issue?
>
> and there are other few conditions in which the same equals condition is
> working without any issue.
>
>
> regards,
> Sri.
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/getInfo-return-equals-TEST-function-is-not-working-as-expected-tp4017869.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
>


More information about the rules-users mailing list