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