}
return summary;
}
private static WorkflowDBEntry getWorkflowDBEntry(ResultSet rs) throws SQLException, JsonParseException, JsonMappingException, IOException {
WorkflowDBEntry w = new WorkflowDBEntry();
w.setWorkflowId(WorkflowFields.WORKFLOWID.getString(rs));
w.setWorkflowName(WorkflowFields.WORKFLOWNAME.getString(rs));
w.setUserName(WorkflowFields.USERNAME.getString(rs));
w.setStartTime(WorkflowFields.STARTTIME.getLong(rs));
w.setElapsedTime(WorkflowFields.DURATION.getLong(rs));
w.setNumJobsTotal(WorkflowFields.NUMJOBSTOTAL.getInt(rs));
w.setInputBytes(WorkflowFields.INPUTBYTES.getLong(rs));
w.setOutputBytes(WorkflowFields.OUTPUTBYTES.getLong(rs));
w.setNumJobsCompleted(WorkflowFields.NUMJOBSCOMPLETED.getInt(rs));
w.setWorkflowContext(jsonMapper.readValue(WorkflowFields.WORKFLOWCONTEXT.getString(rs), WorkflowContext.class));
return w;
}