Calling the ORMB FOP Reporting API

Procedure

To call the ORMB FOP reporting API:

  1. You should use the ORMB provided business component to call the below reporting API which generates the FOP reports:
    com.splwg.ccb.domain.reportsubmission.FOPReportGenerationComponent_​Impl
  2. Call the reporting API method in the below format:

    public String generateReport(String xslTemplateFileName, String xmlContent, String outputFileName)

    The parameters for the reporting API method is defined as below:

    Parameter Name Parameter Description
    xslTemplateFileName Used to pass the XSL-FO/XSL file name. It is given in the below format:
    <name of report>.xsl
    xmlContent Used to pass the XML content generated by the algorithm.
    outputFileName Used to pass the PDF/Excel (XLS) file name that you want to generated. It is given in the below format:
    <name_of_report>.pdf/xls