Thanks for introducing ResourceFactory. It simplified the code further.
Can I know what is KnowledgeBuilder ?
// Import
import org.drools.io.Resource;
import org.drools.io.ResourceFactory;
// Implementation
Resource resource = ResourceFactory.newFileResource( "./rules.drl" );
RuleBase ruleBase = ruleBaseLoader.loadFromReader( resource.getReader() );
scoreDirectorFactoryConfig.setRuleBase(ruleBase);
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-read-DRL-files-not-in-resource-c...
Sent from the Drools: User forum mailing list archive at
Nabble.com.