The report generators that LISA provide include most of the output required. However, you can create your own report to handle a specific situation. LISA provides built-in support for custom report generators.
To create a report generator:
This class tells LISA that your class is a custom report.
public class ReportEventsToFile extends ReportGenerator
{
}
This method provides the name that is used to identify the custom report in the Staging Document Editor.
public String getTypeName()
{
return "Report Events To a File";
}
For each item in the Report Attributes section of the Reports tab in the Staging Document Editor. Add a Parameter to the ParameterList for the report.
When LISA tries to execute a report, it first creates an instance of the custom class. It then calls the initialize method, passing the ParameterList that was read from the XML of the staging document. LISA automatically reads and writes the XML representation of report attributes by making each of the Parameter objects in getParameters a child tag of the report XML tag. Each parameter key becomes the tag name and the child text of the tag is the value.
When LISA has finished the test, it invokes this method on your report generator. This invocation is your opportunity to complete your processing, like saving the document that you have been writing.
|
Copyright © 2014 CA Technologies.
Tous droits réservés.
|
|