See the docs on setKieBase() (optaplanner 6+) or setRuleBase(optaplanner 5.5 or lower)
On 07-08-13 05:54, meganwoods wrote: > Hi, > > Is it possible to load drl files from the filesystem without them being on > the classpath. > > I can create an XML solver factory using a stream from the constructor but > the loading of any DRL files appears to require those drl files to be on the > class path. > > Looking at the private XmlBuildFactory.buildKieBase on line 301 it uses > getClass().getResourceAsStream() > > I was wondering if there was another strategy I could use to load DRL's off > the file system as opposed to off the classpath. > > Cheers Megan Woods > > > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Optaplanner-loading-drl-from-filesystm-not-off-classpath-tp4025378.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 > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
