String wdStatus = rs.getString(7);
WorkflowExecutionStatus workflowExecutionStatus = new WorkflowExecutionStatus(workflowInstance,
createExecutionStatus(wdStatus),lastUpdateDate);
workflowInstanceData = new WorkflowExecutionDataImpl(null,
workflowInstance, workflowExecutionStatus, null);
ExperimentDataImpl expData = (ExperimentDataImpl) experimentData;
workflowInstanceData.setExperimentData(expData);
// Set the last updated workflow's status and time as the experiment's status
if(expData.getExecutionStatus()!=null) {
if(expData.getExecutionStatus().getStatusUpdateTime().compareTo(workflowExecutionStatus.getStatusUpdateTime())<0) {
expData.setExecutionStatus(workflowExecutionStatus);
}
} else {
expData.setExecutionStatus(workflowExecutionStatus);
}
experimentData.getWorkflowExecutionDataList().add(workflowInstanceData);
}
WorkflowInstanceNode workflowInstanceNode = new WorkflowInstanceNode(workflowInstanceData.getWorkflowExecution(), rs.getString(10));
NodeExecutionData workflowInstanceNodeData = new NodeExecutionData(workflowInstanceNode);