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 <[email protected]> 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 > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
