Description of problem: Documentation for Drools 5.3.0.Final is outdated because in part Drools Expert, section 8.6.4. The Audit View, is used outdated example about creating audit log where deprecated RuleBase is used instead of KnowledgeBase. Link to this documentation: http://docs.jboss.org/drools/release/5.3.0.Final/drools-expert-docs/html/ch08.html#d0e8131 Version-Release number of selected component (if applicable): Drools 5.3.0.Final Documentation Actual results: WorkingMemory workingMemory = ruleBase.newWorkingMemory(); // Create a new Working Memory Logger, that logs to file. WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(workingMemory); // An event.log file is created in the subdirectory log (which must exist) // of the working directory. logger.setFileName( "log/event" ); workingMemory.assertObject(...); workingMemory.fireAllRules(); // stop logging logger.writeToDisk(); Expected results: ...something like this... KnowledgeBase kbase = readKnowledgeBase(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test"); ksession.insert(...); ksession.fireAllRules(); logger.close();
Jurag, I've filled a jira for this issue, please follow: https://issues.jboss.org/browse/JBRULES-3364 for updates on the issue. thanks Lee
Fixed, thanks for reporting. https://github.com/droolsjbpm/drools/commit/8aa9caa989e171af4b34217bd5c2c3b24767c4bc
Geoffrey De Smet <ge0ffrey.spam> updated the status of jira JBRULES-3364 to Resolved
Geoffrey De Smet <ge0ffrey.spam> made a comment on jira JBRULES-3364 Fixed on master and on 5.3.x.
Please verify the issue on 5.3 ER4.
Product docs updates and pushed to the internal doc-stage[1] Docs should be live on the stage in under an hour. [1]http://documentation-stage.bne.redhat.com/docs/en-US/JBoss_Enterprise_BRMS_Platform/5/html/JBoss_Rules_5_Reference_Guide/ch07s07s02.html
VERIFIED. (Although the documentation still mentions "ruleBase", it is only the name of the variable. It doesn't mention RuleBase class.)
Closing as status already set to verified.