You can customize the layout and content of business rule and static rule analysis reports by defining a Business Intelligence and Reporting Tools (BIRT) template. You therefore need to be conversant with BIRT. For more information, refer to the BIRT Developer Guide in the Eclipse online help.
| Notes |
You can also customize the Rule Team Server report by overwriting teamserver-report.rpdt found in jrules-teamserver-web-XXX.war/WEB-INF/lib > jrules-teamserver-web.jar/ilog/rules/teamserver/web/birt_reports and redeploying the Rule Team Server ear.However, you must use Eclipse 3.0 and BIRT 1.0.1 to modify or create teamserver-report.rpdt. Reports created in JRules 6.7 using Eclipse 3.3 and BIRT 2.2 will not work in Rule Team Server.
|
Creating a BIRT template
A BIRT template can be created from a blank report with no predefined content, or by selecting an existing report to copy.
-
On the File menu select New > Other.
-
On the Select a Wizard page, expand Business Intelligence and Reporting Tools and select Report.
-
Click Next to display the New Report wizard.
-
In the New Report wizard, enter the path to the required parent directory, or select it from the list of projects displayed.
-
Type a name for the report template.
The default name is
new_report.rptdesign.
-
Click Next.
-
On the Select a Report page, select an existing template to copy.
-
Click Finish.
-
At the prompt to change to the Report Design perspective, click Yes.
You have now created the template.
Selecting your data source, data set and refining the report design
Once you have created the template, you can select your data source and data set and implement the required design.
-
In the Report Design Perspective, in the Data Explorer, right-click Data Sources then click New Data Source.
-
On the New Data Source page, select the Data Source Type:
-
To create a template for a business rule report, select ILOG Rule Data Source.
-
To create a template for a static rule analysis report, select ILOG Static Rule Analysis Data Source.
-
Type a Data Source Name.
-
Click Finish.
The new data source is added to the Data Sources folder:
-
In the Data Explorer, right-click Data Sets and click New Data Set.
-
On the New Data Set page, type a Data Set Name.
-
If you selected ILOG Rule Data Source as the data source, select the Data Set Type.
If you selected
ILOG Static Rule Analysis Data Source as the data source, the data set type is
Static Rule Analysis Data Set.
-
Click Finish.
-
On the Edit Data Set dialog, edit any settings, as required.
Use the
Data Selection page to select the data you want to work with. Use the
Preview Results page to preview the report results.
-
Click OK to close the dialog.
-
Use the Palette view to design the new template.
-
When you have finished creating the report template, copy it to the appropriate location:
<InstallDir>\studio\eclipse\plugins\ilog.rules.reporting_x.x.x\
templates\business_rule_reports
<InstallDir>\studio\eclipse\plugins\ilog.rules.reporting_x.x.x\
templates\static_rule_analysis_reports
Where
x.x.x is the plug-in version number.
The report is now available for selection using the report wizards described in Generating Business Rule Reports and Generating Static Rule Analysis Reports.