use of org.drools.compiler.lang.descr.GlobalDescr in project drools by kiegroup.
the class KnowledgeBuilderTest method createEvalRule.
private void createEvalRule(final PackageDescr packageDescr, final String expression) {
final RuleDescr ruleDescr = new RuleDescr("rule-1");
packageDescr.addRule(ruleDescr);
final AndDescr lhs = new AndDescr();
ruleDescr.setLhs(lhs);
packageDescr.addGlobal(new GlobalDescr("map", "java.util.Map"));
final EvalDescr evalDescr = new EvalDescr(expression);
lhs.addDescr(evalDescr);
ruleDescr.setConsequence("");
}
Aggregations