* @param wfr
* @param exp
*/
public static void recordWorkflowResultToExperiment(long eid, WorkflowResult wfr, String filename,
BatchExecutionRecordImpl batch, Experiment exp ) {
DataHandler dh = new DataHandlerImpl();
try {
ExecutionRecordImpl rec = new ExecutionRecordImpl(batch);
rec.setDigitalObjectReferenceCopy(filename);
try {
rec.setDigitalObjectSource(dh.get(filename).getName());
} catch (FileNotFoundException e) {
rec.setDigitalObjectSource(filename);
}
// Populate the exec record:
rec.setStartDate(wfr.getStartDate());