// connection.addDirectoryNode(new LocalDirectoryConnector());
// this.node = connection.getExecutionNode();
}
KnowledgeBuilderConfiguration kconf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
if ( this.accumulateFunctions != null && !this.accumulateFunctions.isEmpty() ) {
for ( Entry<String, AccumulateFunction> entry : this.accumulateFunctions.entrySet() ) {
kconf.setOption( AccumulateFunctionOption.get( entry.getKey(),
entry.getValue() ) );
}
}
if ( this.evaluators != null && !this.evaluators.isEmpty() ) {
for ( Entry<String, EvaluatorDefinition> entry : this.evaluators.entrySet() ) {
kconf.setOption( EvaluatorOption.get( entry.getKey(),
entry.getValue() ) );
}
}
KnowledgeBuilder kbuilder = node.get( KnowledgeBuilderFactoryService.class ).newKnowledgeBuilder( kconf );