use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment in project processdash by dtuma.
the class QualityAnalysisPage method writeAFR.
public static void writeAFR(ResultSet data, int col) {
if (data.getColName(col) == null)
data.setColName(col, getRes("Process.AFR_Label"));
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
double appraisalTime = e.actualTime(PhaseType.Appraisal);
double failureTime = e.actualTime(PhaseType.Failure);
data.setData(row, col, num(appraisalTime / failureTime));
}
}
use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment in project processdash by dtuma.
the class PlanAnalysisPage method getTotalActualTime.
@Chart(id = "totalTime", type = "line", titleKey = "Plan.Time_Title")
public ResultSet getTotalActualTime(ChartData chartData) {
ResultSet data = chartData.getEnactmentResultSet("Hours");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
data.setData(row, 1, num(e.actualTime() / 60));
}
return data;
}
use of net.sourceforge.processdash.tool.db.WorkflowHistDataHelper.Enactment in project processdash by dtuma.
the class QualityAnalysisPage method writeYieldsByPhase.
private ResultSet writeYieldsByPhase(ChartData chartData, boolean process) {
List<String> phases = chartData.getPhases();
if (process)
phases.remove(0);
Collections.reverse(phases);
ResultSet data = chartData.getEnactmentResultSet(phases.size());
for (int col = phases.size(); col > 0; col--) {
String phase = phases.get(col - 1);
data.setColName(col, phase);
data.setFormat(col, "100%");
for (int row = data.numRows(); row > 0; row--) {
Enactment e = (Enactment) data.getRowObj(row);
data.setData(row, col, num(e.actualYield(phase, process)));
}
}
return data;
}
Aggregations