[jboss-jira] [JBoss JIRA] (JBRULES-3364) Outdated Drools 5.3.0.Final documentation

L Carlon (JIRA) jira-events at lists.jboss.org
Sun Jan 29 18:52:48 EST 2012


L Carlon created JBRULES-3364:
---------------------------------

             Summary: 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


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/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();

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

        


More information about the jboss-jira mailing list