Line 1: |
|
|
+ |
This report shows a user any recent build life activity. This report has to be used in conjunction with a report template such as the [[HTML Template]].
|
|
|
|
|
|
|
+ |
----
|
|
|
|
|
|
|
+ |
''Meta-Data Script:''
|
|
|
|
|
|
|
+ |
<pre>import com.urbancode.anthill3.domain.reporting.*;
|
|
|
|
|
|
|
+ |
ReportMetaData rmd = new ReportMetaData();
|
|
|
|
|
|
|
+ |
rmd.addColumn("Build Life");
|
|
|
+ |
rmd.addColumn("Project");
|
|
|
+ |
rmd.addColumn("Workflow");
|
|
|
+ |
rmd.addColumn("Latest Stamp");
|
|
|
+ |
rmd.addColumn("Status");
|
|
|
+ |
rmd.addColumn("Date");
|
|
|
|
|
|
|
+ |
return rmd;
|
|
|
|
|
|
|
+ |
</pre>
|
|
|
|
|
|
|
+ |
----
|
|
|
|
|
|
|
+ |
''Context Script:''
|
|
|
|
|
|
|
+ |
<pre>import com.urbancode.anthill3.dashboard.*;
|
|
|
+ |
import com.urbancode.anthill3.domain.reporting.*;
|
|
|
+ |
import com.urbancode.anthill3.persistence.*;
|
|
|
|
|
|
|
+ |
BuildLifeWorkflowCaseSummary[] summaries = DashboardFactory.getInstance().getBuildLifeWorkflowSummaries(null, null, new Integer(50));
|
|
|
|
|
|
|
+ |
ReportOutput output = new ReportOutput(metaData);
|
|
|
|
|
|
|
+ |
for (int i = 0; i < summaries.length; i++) {
|
|
|
+ |
ReportRow row = new ReportRow(output, "1");
|
|
|
+ |
row.setColumnValue("Build Life", summaries[i].getBuildLifeId().toString());
|
|
|
+ |
row.setColumnValue("Project", summaries[i].getProjectName());
|
|
|
+ |
row.setColumnValue("Workflow", summaries[i].getWorkflowName());
|
|
|
+ |
row.setColumnValue("Latest Stamp", summaries[i].getLatestStamp());
|
|
|
+ |
row.setColumnValue("Status", summaries[i].getStatus().getName());
|
|
|
+ |
row.setColumnValue("Date", summaries[i].getEndDate() == null ? "Running": String.valueOf(summaries[i].getEndDate()));
|
|
|
|
|
|
|
+ |
output.addRow(row);
|
|
|
+ |
}
|
|
|
|
|
|
|
+ |
return output;
|
|
|
|
|
|
|
+ |
</pre>
|
|
|
|
|
|
|
+ |
----
|
|
|
|
|
|
|
+ |
'''Related Content'''
|
|
|
|
|
|
|
+ |
[[AnthillPro Template Reports]]<br/>
|
|
|
+ |
[[Report Templates]]
|