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
Show replies by date