[jboss-jira] [JBoss JIRA] Created: (JBRULES-2695) Spring "Drools Resources" Need to be Modular

Anatoly Polinsky (JIRA) jira-events at lists.jboss.org
Tue Sep 14 14:13:12 EDT 2010


Spring "Drools Resources" Need to be Modular
--------------------------------------------

                 Key: JBRULES-2695
                 URL: https://jira.jboss.org/browse/JBRULES-2695
             Project: Drools
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: All
    Affects Versions: 5.1.1.FINAL
         Environment: N/A
            Reporter: Anatoly Polinsky
            Assignee: Mark Proctor


When development is done by multiple teams, there should be a way to reference the resources in a modular way.

Here is how it is / can be done now ( which is BAD / not modular ):

  <drools:kbase id="kbase">
    <drools:resources>
      <drools:resource type="DRF" source="classpath:org/drools/container/spring/team1_1.drf"/>
      <drools:resource type="DRF" source="classpath:org/drools/container/spring/team1_2.drf"/>
      <drools:resource type="DRF" source="classpath:org/drools/container/spring/team2_1.drf"/>
      <drools:resource type="DRF" source="classpath:org/drools/container/spring/team2_2.drf"/>
      <drools:resource ref="team3_1"/>
      <drools:resource ref="team3_2"/>
    </drools:resources>
  </drools:kbase>

Since clients need to be aware of _every_ little artifact of individual team, and have to reimport all artifacts into a knowledge base one by one.

Here is a better way to do it:

  <drools:kbase id="kbase">
    <drools:resources ref="team1-resources"/>
    <drools:resources ref="team2-resources"/>
    <drools:resources ref="team3-resources"/>
  </drools:kbase>

where individual team's config may look as:

(e.g. team 1):

   <drools:resources id="team1-resources">
      <drools:resource type="DRF" source="classpath:org/drools/container/spring/team1_1.drf"/>
      <drools:resource type="DRF" source="classpath:org/drools/container/spring/team1_2.drf"/> 
   </drools:resources/>

------------------------------------------------------------------------------

Long story short:

           "drools:resources" needs:

                  1. ID,           to be able to ref to it
                  2. REF,       to be able to ref to an ID

           "drools:kbase" needs:

                  1. To optionally take a list of "drools:resources"

Thank you,
/Anatoly 

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

        


More information about the jboss-jira mailing list