*
* Within this workflow we've decided to use as many parameters of those two as configured within the xml config,
* but if one is not available (i.e. null) we still try to invoke the migration service (and use the default config of the service)
*/
List<Parameter> parameterList = new ArrayList<Parameter>();
Parameters parameters = new Parameters();
/*As long as accepted Parameters for a level-one service type aren't
*uniquely defined and named the following is not possible within a template.
*--> use getAllPropertiesAsParameter instead - this may also contain parameters a certain service does not understand
*/
/*
Parameter pCompressionType = this.getServiceCallConfigs(this.migrate1).
getPropertyAsParameter("compressionType");
if(pCompressionType!=null){
parameterList.add(pCompressionType);
}
Parameter pCompressionQuality = this.getServiceCallConfigs(this.migrate1).
getPropertyAsParameter("compressionQuality");
if(pCompressionQuality!=null){
parameterList.add(pCompressionQuality);
}*/
parameterList = this.getServiceCallConfigs(this.migrate1).
getAllPropertiesAsParameters();
//finally set the parameters for the object
parameters.setParameters(parameterList);
/*
* Now call the migration service
*/
MigrateResult migrateResult = this.migrate1.migrate(digO, migrateFromURI, migrateToURI, parameters);