Array arr=ListUtil.listToArray(range,',');
if(arr.size()==1) {
double from=Caster.toDoubleValue(arr.get(1,null),Double.NaN);
if(!Decision.isValid(from))throw new ApplicationException(errMessage,errDetail);
input.setRangeMin(from);
input.setRangeMax(Double.NaN);
if(from<100)params.setEL("minimum",Caster.toString(from));
}
else if(arr.size()==2) {
String strFrom=arr.get(1,"").toString().trim();
double from=Caster.toDoubleValue(strFrom,Double.NaN);
if(!Decision.isValid(from) && strFrom.length()>0) {
throw new ApplicationException(errMessage,errDetail);
}
input.setRangeMin(from);
String strTo=arr.get(2,"").toString().trim();
double to=Caster.toDoubleValue(strTo,Double.NaN);
if(!Decision.isValid(to) && strTo.length()>0) {
throw new ApplicationException(errMessage,errDetail);
}
input.setRangeMax(to);
if(from<to) {
params.setEL("minimum",Caster.toString(from));
params.setEL("maximum",Caster.toString(to));
}
}
else throw new ApplicationException(errMessage,errDetail);
}