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

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Wed Feb 15 04:14:04 EST 2012


    [ https://issues.jboss.org/browse/JBRULES-3364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666618#comment-12666618 ] 

RH Bugzilla Integration commented on JBRULES-3364:
--------------------------------------------------

Ryan Zhang <rzhang at redhat.com> made a comment on [bug 784543|https://bugzilla.redhat.com/show_bug.cgi?id=784543]

Please verify the issue on 5.3 ER4.
                
> 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.CR1
>
>
> 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