use of org.kie.dmn.core.ast.DMNFunctionDefinitionEvaluator.FormalParameter in project drools by kiegroup.
the class DMNKiePMMLTrustyInvocationEvaluator method getPMMLPMMLContext.
private PMMLContext getPMMLPMMLContext(String correlationId, String modelName, DMNResult dmnr) {
PMMLRequestDataBuilder pmmlRequestDataBuilder = new PMMLRequestDataBuilder(correlationId, modelName);
for (FormalParameter p : parameters) {
Object pValue = getValueForPMMLInput(dmnr, p.name);
Class class1 = pValue.getClass();
pmmlRequestDataBuilder.addParameter(p.name, pValue, class1);
}
return new PMMLContextImpl(pmmlRequestDataBuilder.build());
}
Aggregations