Hello,
I try to use a dsl in several DRL rule files, but it doesn't work.
In my java class, I do that :
Reader source1 = new InputStreamReader(
DroolsTest.class.getResourceAsStream( "/Test1.drl" ) );
Reader source2 = new InputStreamReader(
DroolsTest.class.getResourceAsStream( "/Test2.drl" ) );
//optionally read in the DSL (if you are using it).
Reader dsl = new InputStreamReader( DroolsTest.class.getResourceAsStream(
"/Exemple.dsl" ) );
builder.addPackageFromDrl( source1, dsl );
builder.addPackageFromDrl( source2, dsl );
Is it possible to use a same dsl file in several drl files or I have to have
one dsl for one drl ?
Thanks :-)
--
View this message in context:
http://www.nabble.com/using-a-dsl-in-multiple-drl-files-tp21584358p215843...
Sent from the drools - user mailing list archive at
Nabble.com.