I'm wondering if it possible to specify rules file names directly in the flow
(.rf) file.
To explain myself better:
now i have something like :
...
1)KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
2)kbuilder.add(ResourceFactory.newReaderResource(new InputStreamReader(
RuleUtils.class.getResourceAsStream(flowName))),
ResourceType.BPMN2);
3)for (String s : rules)
kbuilder.add(ResourceFactory.newReaderResource(new
InputStreamReader(
RuleUtils.class.getResourceAsStream(s))),
ResourceType.DRL);
...
i would like to skip the step 3, cause I'm working on a generic web service
implementation to execute rules,then
i don't know in advance how many rules i got, they name, etc.
Cheers,
Gianfranco
--
View this message in context:
http://drools.46999.n3.nabble.com/ruleflow-tp3861603p3861603.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.