j-easy / easy-rules

The simple, stupid rules engine for Java
https://github.com/j-easy/easy-rules/wiki
MIT License
4.86k stars 1.05k forks source link

How are exceptions handled when executing rules? #356

Open diaosiman opened 3 years ago

diaosiman commented 3 years ago

When we execute rules according to the objects in facts, if there is a problem in one link of the matching rules, can we get the specific exception information? for example:rulesEngine.fire(rules, facts); If there is an exception in the execution, we can get the specific information to facilitate us to judge whether to try again, or to degrade, or to consider other options?

Thank you very much!

zhhaojie commented 2 years ago

check this document here, it should be helpful. https://github.com/j-easy/easy-rules/wiki/defining-rules-engine#rules-engine-parameters