j-easy / easy-rules

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

Question : if i have many rules do i have to make each rule engine? #397

Closed jjhangu closed 1 year ago

jjhangu commented 1 year ago

If there are three rules, do I have to create a rule engine individually?

PersonRule
ContryRule
CitryRule 

or create One rule engine and only make parameters differently

ex)

if i want call PersonRule 
Facts.put(personRule, Person)

if I want call ContryRule
Facts.put(contryRule, ContryRule)