[jboss-jira] [JBoss JIRA] Created: (JBRULES-2070) setting ruleflow-group focus with the new API

Michal Bali (JIRA) jira-events at lists.jboss.org
Wed Apr 22 07:16:24 EDT 2009


setting ruleflow-group focus with the new API
---------------------------------------------

                 Key: JBRULES-2070
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2070
             Project: JBoss Drools
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: drools-api, drools-core  (expert)
    Affects Versions: 5.0.0.CR1
            Reporter: Michal Bali
            Assignee: Mark Proctor
            Priority: Minor


Hello,
When unit testing a rule that is in a ruleflow-group, with the old API we could activate just specific ruleflow-group by doing: session.getAgenda().activateRuleFlowGroup("ruleFlowGroupName"); 
This greatly helps to isolate the rule under test. However it is not possible with the new API. Please support this in the new API or let me know if there is a different way.

Please let me know if you need more information or an example.

A dirty workaround:
StatefulKnowledgeSession session = ...;
((StatefulKnowledgeSessionImpl)session).session.getAgenda().activateRuleFlowGroup("some name");

Ideally, also the StatelessKnowledgeSession should support setting of ruleflow-group, but it is not a big deal.

Thanking you in advance.
Best Regards,
Michal

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