It would help if you read the documentation which explains that eval() must return a boolean.
"Predicate" is a mathematical concept; how it is implemented in some system is a technical issue. That said, "predicates" can be expressed in Drools one way or other, and some predicates may be more efficient than other, depending on the computational details. Again, the documentation contains many examples showing "predicate" implementations, and usage of "from" is documented as well. -W On 20 April 2011 10:48, Arjun Dhar <[email protected]> wrote: > I believe eval() solves that purpose functionally but is not optimal; not > sure how evals() tie in with Rete-OO > Specially since the return type of eval() is not known, I can seriously > doubt it being optimal as using Objects directly in conditions. > > ----- > Software documentation is like sex: If its good its really really good, if > not then its still better than nothing! > -- > View this message in context: > http://drools.46999.n3.nabble.com/First-Order-Logic-METHODS-in-Drools-tp2841531p2842085.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
