List<Parameter> pList = serviceDescr.getParameters();
if (pList != null) {
Iterator<Parameter> it = pList.iterator();
while (it.hasNext()) {
Parameter par = it.next();
ServiceParameter spar = reqParamInspector.new ServiceParameter(par
.getName(), par.getValue(), par.getDescription());
//add the default params to the bean
this.addDefaultParameter(spar);
}
} else {
log.info("Service: " + serviceDescr.getName() +" has no default parameters.");
}
//FIXME: dirty solution. Offer the migrate_from and migrate_to parameters for type 'Migrate' service
//TODO offer a pull down list for mime-types
if(serType.endsWith(Migrate.NAME)){
if((!this.getDefaultServiceParameters().contains(WorkflowTemplate.SER_PARAM_MIGRATE_FROM))){
ServiceParameter spar = reqParamInspector.new ServiceParameter(WorkflowTemplate.SER_PARAM_MIGRATE_FROM,"planets:fmt/ext/png");
this.addDefaultParameter(spar);
}
if((!this.getDefaultServiceParameters().contains(WorkflowTemplate.SER_PARAM_MIGRATE_TO))){
ServiceParameter spar = reqParamInspector.new ServiceParameter(WorkflowTemplate.SER_PARAM_MIGRATE_TO,"planets:fmt/ext/png");
this.addDefaultParameter(spar);
}
}
}catch(Exception e){