This sample explains how to create a Custom Report for Services in WSO2 Governance Registry in few easy steps. We will be reusing the code of the Handler Sample in this example. This sample requires Apache Maven. See Installing Apache Maven for Governance Registry on Windows or Installing Apache Maven for Governance Registry on Linux.
Alternatives
This sample includes two different alternatives that would in return produce two different types of reports:
...
2. Add the following dependency to your POM file:
Info | ||
---|---|---|
| ||
Project Object Model (POM) generate more elegant reports is an XML representation of a Maven project held in a file named pom.xml. You should find POM file by the name pom.xml inside |
...
Info | ||
---|---|---|
| ||
The command |
A successful run of Apache Maven will generate a report similar to the following:
...
6. Start the WSO2 Governance Registry. See Starting Governance Registry Management Console on Windows or Starting Governance Registry Management Console on Linux.
7. Navigate to the Resource Browser of Governance Registry and add a new resource as text content with the following parameters:
...
Click the "Add" button to finish adding the text content.
Read more on Text Content Creation.
Info | ||
---|---|---|
| ||
The WSO2 Governance Registry uses the Jasper Reporting Engine. The Template File that you created is a Jasper Report Template (.jrxml). Learn more on how to use tools like iReport to generate these template files. |
...
Click the "Add" button to finish adding the report.
See the section on Reports to learn how to add reports and manage existing reports.
9. Add a few Services to Governance Registry. Read more on Managing Services.
10. Go to the Manage Reports screen, and select "Generate" to open the Generate Report Screen.
...