rulebook icon indicating copy to clipboard operation
rulebook copied to clipboard

Auditor marks rule EXECUTED despite it wasn't

Open dbucek opened this issue 6 years ago • 3 comments

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.

dbucek avatar Dec 29 '18 11:12 dbucek

.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?

Clayton7510 avatar Jan 02 '19 20:01 Clayton7510

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.

Clayton7510 avatar Jan 02 '19 20:01 Clayton7510

Looks like this dropped off the radar. Back working on it ;)

Clayton7510 avatar Apr 28 '19 05:04 Clayton7510