Search in sources :

Example 1 with FormalParameter

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());
}
Also used : FormalParameter(org.kie.dmn.core.ast.DMNFunctionDefinitionEvaluator.FormalParameter) PMMLContextImpl(org.kie.pmml.evaluator.core.PMMLContextImpl) PMMLRequestDataBuilder(org.kie.pmml.evaluator.core.utils.PMMLRequestDataBuilder)

Aggregations

FormalParameter (org.kie.dmn.core.ast.DMNFunctionDefinitionEvaluator.FormalParameter)1 PMMLContextImpl (org.kie.pmml.evaluator.core.PMMLContextImpl)1 PMMLRequestDataBuilder (org.kie.pmml.evaluator.core.utils.PMMLRequestDataBuilder)1