Bug 784543

Summary: Outdated Drools 5.3.0.Final documentation
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: jgargula
Component: doc-BRMS_Rules_Reference_GuideAssignee: lcarlon <lcarlon>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Petrovický <lpetrovi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: brms-jira, gdesmet, lpetrovi, mvecera
Target Milestone: ---Keywords: Documentation
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 02:51:10 UTC Type: Component Upgrade
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jgargula 2012-01-25 10:18:27 UTC
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();

Comment 4 lcarlon 2012-01-29 23:52:09 UTC
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

Comment 5 Geoffrey De Smet 2012-01-31 16:19:32 UTC
Fixed, thanks for reporting.
https://github.com/droolsjbpm/drools/commit/8aa9caa989e171af4b34217bd5c2c3b24767c4bc

Comment 6 JBoss JIRA Server 2012-01-31 16:20:26 UTC
Geoffrey De Smet <ge0ffrey.spam> updated the status of jira JBRULES-3364 to Resolved

Comment 7 JBoss JIRA Server 2012-01-31 16:20:26 UTC
Geoffrey De Smet <ge0ffrey.spam> made a comment on jira JBRULES-3364

Fixed on master and on 5.3.x.

Comment 8 Ryan Zhang 2012-02-15 09:12:41 UTC
Please verify the issue on 5.3 ER4.

Comment 9 lcarlon 2012-03-21 05:24:44 UTC
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

Comment 10 Lukáš Petrovický 2012-05-02 06:46:10 UTC
VERIFIED. (Although the documentation still mentions "ruleBase", it is only the name of the variable. It doesn't mention RuleBase class.)

Comment 12 lcarlon 2012-06-25 02:51:10 UTC
Closing as status already set to verified.