//endTime
Calendar c2 = new GregorianCalendar();
c2.setTimeInMillis(weeWFResult.getEndTime());
batchRecord.setStartDate(c2);
BatchWorkflowResultLogImpl wfResultLog = new BatchWorkflowResultLogImpl();
try {
//try serializing the workflow result log- as this is the way it needs to be stored
String wfResultxml = JaxbUtil.marshallObjectwithJAXB(WorkflowResult.class, weeWFResult);
log.debug("Successfully serialized the workflowResult Log via Jaxb" );
//store the wfResultLog in the db model bean
wfResultLog.setSerializedWorkflowResult(wfResultxml);
} catch (Exception e) {
log.debug("Problems serializing wfResultLog object",e);
this.processNotify_WorkflowFailed(expID, "WorkflowResult not serializable");
return;
}