As part of the work for SWITCHYARD-1559, KIE/Drools/jBPM was upgraded from 6.0.0.Beta3 to 6.0.0.Beta4. This raised a classloading issue, which prompted a workaround (also on SWITCHYARD-1559) in how KieBaseConfigurations and KnowledgeBuilderConfigurations are created. This workaround, however, had the unknown effect of breaking the ability for DRL to declare their own fact models.
For example, this:
declare Person
name : String
end
results in this:
Unable to create a class for declared type org.test.Person: Unable to load class: org.test.Person;
Class 'Person' not found for type declaration of 'Person'
The workaround in org.switchyard.component.common.knowledge.util.Configurations needs to be fixed so that it works in all cases, and a junit test should be added that exercises declared facts in DRL, so we don't hit this again.
|