Service sMigrate = new Service();
sMigrate.setId("migrate1");
sMigrate.setEndpoint(this.getMigrationService());
//add the general parameters for current input and output format
Param pMigFrom = this.getServiceParamContained(sMigrate.getEndpoint(), WorkflowTemplate.SER_PARAM_MIGRATE_FROM);
if(pMigFrom!=null){
//delete old value - it's not updated until know
this.removeParameter(sMigrate.getEndpoint(), pMigFrom);
}
this.addParam(sMigrate.getEndpoint(), WorkflowTemplate.SER_PARAM_MIGRATE_FROM, this.getInputFormat());
Param pMigTo = this.getServiceParamContained(sMigrate.getEndpoint(), WorkflowTemplate.SER_PARAM_MIGRATE_TO);
if(pMigTo!=null){
//delete old value - it's not updated until know
this.removeParameter(sMigrate.getEndpoint(), pMigTo);
}
this.addParam(sMigrate.getEndpoint(), WorkflowTemplate.SER_PARAM_MIGRATE_TO, this.getOutputFormat());