Hi,
Is that possible to use templates with dsl without converting the dsl and
dslr to drl?
I have opted the below way to support templates with DSL and dslr.
But want to know is there a way to use the templates in dsl without
converting it to drl for ObjectDataCompiler.compile method call? Or am i
missing something?
ObjectDataCompiler compiler = new ObjectDataCompiler();
InputStream dslResource =
ResourceFactory.newClassPathResource("Rules.dsl",
DroolsValidator.class).getInputStream();
dsl = convertStreamToString(dslResource);
DrlParser parser = new DrlParser();
String resultDrl = parser.getExpandedDRL( subRuleDesc, new
StringReader(dsl));
drl = compiler.compile(rulesData, getInputStream(resultDrl));
Thanks,
Bala
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Templates-without-spr...
Sent from the Drools - User mailing list archive at
Nabble.com.