MigrateResult migrateResult = this.migrate.migrate(digO,
migrateFromURI, migrateToURI, parameterList);
wfResultItem.setEndTime(System.currentTimeMillis());
wfResultItem.addLogInfo("migration from: "+migrateFromURI+" to: "+migrateToURI+" took place");
ServiceReport report = migrateResult.getReport();
//report service status and type
wfResultItem.setServiceReport(report);
if (report.getType() == Type.ERROR) {
String s = "Service execution failed: " + report.getMessage();
log.debug(s);
wfResultItem.addLogInfo(s);
throw new Exception(s);
}
//add report on outputDigitalObject