easy-rules icon indicating copy to clipboard operation
easy-rules copied to clipboard

How to identify which part has failed in the rule condition?

Open SudharsanThumattiSathiamoorthy opened this issue 3 years ago • 1 comments

Hi Team,

Is there any way to know which part has failed in the rule condition using easy-rules-engine? In the below rule condition, we need to know if "product.width >= 50.5" or "product.height > 2" has failed? I have went through the existing functionalities provided by MVEL and I don't see the option of retrieving the sub condition which has failed.

If the existing MVEL library does not provide such functionality, Can we please take this a new requirement into j-easy project?

(product.width >= 50.5 && product.height > 2)

You can add system.out.println within mvel expression, or a static logger class should also work.

dvgaba avatar Aug 13 '22 02:08 dvgaba