Hi,
We are in the process of upgrading Drools in our application. Until 5.x the following spring configuration used to work well for us:
<drools:kbase id="validationRulesKBase">
<drools:resources>
<drools:resource type="DRL" source="classpath:rules/trade/rule1.drl" />
<drools:resource type="DRL" source="classpath:rules/trade/rule2.drl" />
</drools:resources>
</drools:kbase>
With an inejection of this KnowledgeBase, we would create a stateless session and fire all rules after inserting appropriate facts and globals.
After upgrading to Drools 6, our DRL files don't seem to be getting picked up in the knowledge base - we are using the following spring configuration:
<bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor"/>
<kie:kmodule id="kieModule">
<kie:kbase name="validationRulesKBase" packages="com.acme.rules"/>
</kie:kmodule>
This KnowledgeBase gets injected in our code but it doesn't seem to pick up the DRL files in the specified package. We have ensure that the drl files are under src/main/resources/com/acme/rules and that package is specified in each DRL file at the top.
Am I missing something in this new configuration?