@Override
protected void writeContents() throws IOException {
String projectID = getProjectID();
String workflowName = getParameter("workflowName");
WorkflowHistDataHelper hist = new WorkflowHistDataHelper(
getDataContext(), projectID, workflowName);
if (projectID != null && StringUtils.hasValue(workflowName))
writeReportForWorkflow(hist);
else
writeWorkflowSelectionScreen(hist);