rulebook
rulebook copied to clipboard
Auditor marks rule EXECUTED despite it wasn't
I wanted to use auditor for checking which rules were executed. I build one instance of rules and run several facts against it in cycle. But each run the audit is not cleared but still remember which rules were executed from previous cycle. Shouln't be staleless between calling .run(facts) on RuleBook? Thanks.
.run(facts) is stateless. However, perhaps there is an issue with auditor when it is not. I'll check on that. I assume you are using RuleBookRunner w/POJO rules?
Looks like there may be an issue where rule status doesn't reset in the auditor. Normally, I don't think this would be an issue, except when the auditor is the same as the RuleBook, which is the case with RuleBookRunner. Thanks for finding this issue. I'll get it corrected shortly.
Looks like this dropped off the radar. Back working on it ;)