Generating Rule Project Statistics reports

You can easily generate a report to get an overview of rule projects and of the artifacts that they contain or reference.

About this task

The Rule Project Statistics report provides an overview of the rule projects that are opened in your workspace and indicates their scale.

The report shows statistics for each rule project and for the rule artifacts that it contains, for example:

  • The number of ruleset parameters and categories defined in the rule project

  • The number of BOM classes, methods and attributes

  • The minimum and maximum numbers of rows in decision tables

  • The number of rule tasks in a ruleflow, and the execution mode they use

  • The number of phrases and business terms in the vocabulary

Procedure

To generate a Rule Project Statistics report:

  1. Click File > Export.
  2. In the Export wizard, select Rule Designer > Rule Project Statistics, and then click Next.
  3. To save the report in the workspace directory, keep the default location and click Finish.

    The report opens as an HTML page in your browser.

    Tip: Alternatively, you can right-click a rule project, and click Export > Rule Project Statistics.

Results

Rule Designer creates a <rule-statistics-report>.xml file in the workspace directory, along with a rs4j-export.xsl file to view the report in HTML. The generated report uses the locale of Rule Designer.

  • The .xml file contains the statistics.

  • The .xsl file is based on the eXtensible Stylesheet Language standard and converts the XML information into a series of HTML tables. You can customize the .xsl file or replace it with your own .xsl file to fit specific needs. If you modify this file manually, it cannot be regenerated by exporting the rule project statistics in Rule Designer. To override the modified file with a new generated one, you must first delete the file.

Note: If you want to open the report after closing it, go to the directory where you saved the report and open the <rule-statistics-report>.xml file in a web browser.