deliveredtechnologies / rulebook

100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
http://www.deliveredtechnologies.com
Apache License 2.0
721 stars 124 forks source link

Get all rules #171

Open sligotri opened 5 years ago

sligotri commented 5 years ago

Is there a way to retrieve all rules that have been added to a rule book? Something like rulebook.getRules() ? Should I just extend CoRRuleBook and implement my own?

Clayton7510 commented 4 years ago

There is no way to get all rules since the rules are linked together in a chain using Chain of Responsibility Pattern, currently. However, as you pointed out, you could implement your own RuleBook.

You can get a list of all the rule names and their statuses using an Auditor.