Did you try the advice in the Documentation ?
Example 4.60 seems like the one...

KieServices kServices = KieServices.Factory.get();
KieFileSystem kfs = ks.newKieFileSystem();
kfs.write("src/main/resources/org/kie/example5/HAL5.drl", getRule());
KieBuilder kb = ks.newKieBuilder(kfs);

I don't know what getRule() is though - I think it's referring to
ResourceFactory.newClassPathResource("blahblahblah/rules/HAL5.drl")

But yeah, I think the new stuff is definitely designed for Maven named
sessions in mind, for best practice.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Loading-rules-from-the-filesystem-tp4029275p4029277.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to