//resolve the digital Object reference
DigitalObject digo = this.retrieveDigitalObjectDataRegistryRef(digoRef);
//call the identification service
IdentifyResult identifyResults = identifyService.identify(digo,parameterList);
// document
wfResultItem.setEndTime(System.currentTimeMillis());
ServiceReport report = identifyResults.getReport();
// report service status and type
wfResultItem.setServiceReport(report);
if (report.getType() == Type.ERROR) {
String s = "Service execution failed: " + report.getMessage();
wfResultItem.addLogInfo(s);
throw new Exception(s);
}
//document the comparison's output
URI ret = null;
if((identifyResults.getTypes()!=null)&&(identifyResults.getTypes().size()>0)){
wfResultItem.addLogInfo("identifying properties of object: "+digo.getPermanentUri());
for(URI uri : identifyResults.getTypes()){
if(ret == null){
ret = uri;
}
String extractedInfo = "[uri: "+uri+"] \n";
wfResultItem.addExtractedInformation(extractedInfo);