use of org.kie.api.runtime.ClassObjectFilter in project drools by kiegroup.
the class DroolsAbstractPMMLTest method getDoubleFieldValue.
public Double getDoubleFieldValue(FactType type) {
Class<?> klass = type.getFactClass();
Iterator iter = getKSession().getObjects(new ClassObjectFilter(klass)).iterator();
Object obj = iter.next();
return (Double) type.get(obj, "value");
}
Aggregations