[
https://issues.jboss.org/browse/JBRULES-3364?page=com.atlassian.jira.plug...
]
RH Bugzilla Integration commented on JBRULES-3364:
--------------------------------------------------
JBoss JIRA Server <jira-update(a)redhat.com> made a comment on [bug
784543|https://bugzilla.redhat.com/show_bug.cgi?id=784543]
Geoffrey De Smet <ge0ffrey.spam(a)gmail.com> updated the status of jira JBRULES-3364
to Resolved
Outdated Drools 5.3.0.Final documentation
-----------------------------------------
Key: JBRULES-3364
URL:
https://issues.jboss.org/browse/JBRULES-3364
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-docs
Affects Versions: 5.3.0.Final
Reporter: L Carlon
Assignee: Geoffrey De Smet
Priority: Minor
Fix For: 5.4.0.Beta3
Originally reported to BZ. Geoffrey, I wasn't sure who to assign this to, I hope you
don't mind I gave it to you to reassign as appropriate.
Copied from BZ:
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/...
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();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira