}
private void fillWorkflowInstanceData (ExperimentData experimentData,
ResultSet rs,
List<WorkflowExecution> workflowInstances) throws SQLException, ExperimentLazyLoadedException, ParseException {
WorkflowExecutionDataImpl workflowInstanceData = (WorkflowExecutionDataImpl)experimentData.getWorkflowExecutionData(rs.getString(5));
if (workflowInstanceData == null){
WorkflowExecution workflowInstance = new WorkflowExecution(experimentData.getExperimentId(), rs.getString(5));
workflowInstance.setTemplateName(rs.getString(6));
workflowInstance.setExperimentId(rs.getString(1));
workflowInstance.setWorkflowExecutionId(rs.getString(5));
workflowInstances.add(workflowInstance);
Date lastUpdateDate = getTime(rs.getString(9));
String wdStatus = rs.getString(7);
workflowInstanceData = new WorkflowExecutionDataImpl(null,
workflowInstance, new WorkflowExecutionStatus(workflowInstance,
createExecutionStatus(wdStatus),lastUpdateDate), null);
workflowInstanceData.setExperimentData((ExperimentDataImpl)experimentData);
experimentData.getWorkflowExecutionDataList().add(workflowInstanceData);
}
WorkflowInstanceNode workflowInstanceNode = new WorkflowInstanceNode(workflowInstanceData.getWorkflowExecution(), rs.getString(10));
NodeExecutionData workflowInstanceNodeData = new NodeExecutionData(workflowInstanceNode);
String inputData = getStringValue(11, rs);
String outputData = getStringValue(12, rs);
workflowInstanceNodeData.setInput(inputData);
workflowInstanceNodeData.setOutput(outputData);
workflowInstanceNodeData.setStatus(createExecutionStatus(rs.getString(16)), getTime(rs.getString(18)));
workflowInstanceNodeData.setType(WorkflowNodeType.getType(rs.getString(15)).getNodeType());
workflowInstanceData.getNodeDataList().add(workflowInstanceNodeData);
}