[rules-users] Templates(without spreadsheet) with DSL
Bala
bala.ganesh at accenture.com
Thu Jan 27 04:52:44 EST 2011
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-spreadsheet-with-DSL-tp2361183p2361183.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list