tkobayas commented on issue #6420: URL: https://github.com/apache/incubator-kie-drools/issues/6420#issuecomment-3256823458
Hi @tomcoh22 , The issue has been fixed by https://github.com/apache/incubator-kie-drools/pull/6430 . The fix will be included in 10.2.0 (release date not yet determined). As a workaround, we recommend to rewrite the evals to pattern constraints. e.g. ``` person: Person(state == "CA", liability: liability > 0); //eval(hasAnyOtherLiability(liability)); ``` ``` person: Person(state == "OR" || state == "FL", bankruptcy > 0); //eval(person.getBankruptcy() > 0); ``` Of course, I guess that these rules have been simplified for reporting, but typically, an eval should be rewritten as a pattern constraint. We plan to deprevate eval https://github.com/apache/incubator-kie-drools/issues/6439 If you have any eval example which can not be rewritten without `eval`, please let me know for review. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
