Search in sources :

Example 1 with EvaluatorRegistry

use of org.drools.core.base.evaluators.EvaluatorRegistry in project drools by kiegroup.

the class KnowledgeBuilderConfigurationImpl method buildEvaluatorRegistry.

private void buildEvaluatorRegistry() {
    this.evaluatorRegistry = new EvaluatorRegistry(getClassLoader());
    Map<String, String> temp = new HashMap<String, String>();
    this.chainedProperties.mapStartsWith(temp, EvaluatorOption.PROPERTY_NAME, true);
    for (Entry<String, String> e : temp.entrySet()) {
        String key = e.getKey();
        // a rule in Eclipse plugin using old runtime)
        if ("drools.evaluator.equality".equals(key) || ("drools.evaluator.comparable".equals(key))) {
            continue;
        }
        this.evaluatorRegistry.addEvaluatorDefinition(e.getValue());
    }
}
Also used : HashMap(java.util.HashMap) EvaluatorRegistry(org.drools.core.base.evaluators.EvaluatorRegistry)

Example 2 with EvaluatorRegistry

use of org.drools.core.base.evaluators.EvaluatorRegistry in project drools by kiegroup.

the class DRLExprParserTest method setUp.

protected void setUp() throws Exception {
    super.setUp();
    new EvaluatorRegistry();
    this.parser = new DrlExprParser(LanguageLevelOption.DRL6);
}
Also used : EvaluatorRegistry(org.drools.core.base.evaluators.EvaluatorRegistry) DrlExprParser(org.drools.compiler.compiler.DrlExprParser)

Aggregations

EvaluatorRegistry (org.drools.core.base.evaluators.EvaluatorRegistry)2 HashMap (java.util.HashMap)1 DrlExprParser (org.drools.compiler.compiler.DrlExprParser)1