Bug 784543 - Outdated Drools 5.3.0.Final documentation
Summary: Outdated Drools 5.3.0.Final documentation
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: doc-BRMS_Rules_Reference_Guide
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: lcarlon
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-25 10:18 UTC by jgargula
Modified: 2013-04-29 22:54 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-06-25 02:51:10 UTC
Type: Component Upgrade
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBRULES-3364 0 None Resolved Outdated Drools 5.3.0.Final documentation 2012-06-25 02:48:14 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.