[rules-users] Adding programmatically defined process to spring kbase definition

Swindells, Thomas TSwindells at nds.com
Fri Feb 11 04:27:27 EST 2011


We are currently defining our knowledge base in a spring context file like this:
<drools:kbase id="packKbase">
            <drools:resources>
                  <drools:resource type="DRL"
                        source="classpath:pack/drools/1.drl" />
                  <drools:resource type="DRL"
                        source="classpath:pack/drools/2.drl" />
                  <drools:resource type="DRL"
                        source="classpath:pack/drools/3.drl" />
                  <drools:resource type="DRL"
                        source="classpath:pack/drools/4.drl" />
                  <drools:resource type="DRF"
                        source="classpath:pack/drools/FLOW.rf" />
            </drools:resources>

            <drools:configuration>
                  <drools:mbeans enabled="true" />
            </drools:configuration>
      </drools:kbase>

Ie a load of drl files and a rulesflow file.
We've now decided that we would rather generate the ruleflow programmatically rather than in an rf file (the process is very very regular and so it will be a lot quicker to just generate it).

What is the best way to add a programmatically declared process to the rest of the knowledge base?

Thanks,

Thomas

________________________________

**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110211/756d2398/attachment.html 


More information about the rules-users mailing list