[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2049) org.drools.runtime.rule StatefulRuleSession.fireAllRules(org.drools.runtime.rule.AgendaFilter af) has no AgendaFilter implementations

Régis Ramillien (JIRA) jira-events at lists.jboss.org
Mon Jan 25 05:58:19 EST 2010


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

Régis Ramillien commented on JBRULES-2049:
-------------------------------------------

I agree with you, I have the same issue.
In the documentation (http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html/ch03.html#d0e1293) , we can find this:

--------------------------------
To use a filter specify it while calling fireAllRules(). The following example permits only rules ending in the string "Test". All others will be filtered out.

ksession.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );
--------------------------------

But it doesn't works because of the wrong implements...

> org.drools.runtime.rule StatefulRuleSession.fireAllRules(org.drools.runtime.rule.AgendaFilter af) has no AgendaFilter implementations
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-2049
>                 URL: https://jira.jboss.org/jira/browse/JBRULES-2049
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-api, drools-core
>    Affects Versions: 5.0.0.CR1
>         Environment: Java 1.5
>            Reporter: Bob Shanahan
>            Assignee: Mark Proctor
>
> StatefulSession.fireAllRules(org.drools.spi.AgendaFilter af) has several implementations of AgendaFilter for filtering rules. Why aren't the AgendaFilters common? Even the Activation class between them is different, so it is not simple to workaround by wrapping org.drools.spi.AgendaFilter impls. It would be handy if there were out-of-the-box AgendaFilters for implementations of StatefulRuleSession.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jboss-jira mailing list