use of org.drools.modelcompiler.constraints.BindingInnerObjectEvaluator in project drools by kiegroup.
the class KiePackagesBuilder method createBindingEvaluator.
private BindingEvaluator createBindingEvaluator(RuleContext ctx, Binding binding) {
if (binding == null) {
return null;
}
Variable[] inputs = binding.getInputVariables();
if (inputs.length == 1) {
return new BindingInnerObjectEvaluator(binding);
}
Declaration[] declarations = new Declaration[inputs.length];
for (int i = 0; i < inputs.length; i++) {
declarations[i] = ctx.getDeclaration(inputs[i]);
}
return new BindingEvaluator(declarations, binding);
}
Aggregations