[rules-users] drools 6 equivalent of addKnowledgePackages

pmander paul.s.mander at gmail.com
Tue Dec 3 03:25:02 EST 2013


I head previously read that but didn't spot the bit that mentions creating
from a drl defined as a String. I take it this can be done from
KieFileSystem.

String rules = ...
KieFileSystem kfs = kieServices.newKieFileSystem();
kfs.write(kieServices.getResources().newReaderResource(new
StringReader(rules)));

This throws an exception complaining that the resource doesn't have a source
or target path set.

Is there a way to push a dynamically created drl into this without writing
it to disk first?



--
View this message in context: http://drools.46999.n3.nabble.com/drools-6-equivalent-of-addKnowledgePackages-tp4027044p4027059.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list