Class ReportStarter

  • All Implemented Interfaces:
    ClientProcess, ProcessCall

    public class ReportStarter
    extends Object
    implements ProcessCall, ClientProcess
    Author:
    rlemeill, Ashley Ramdass, victor.perez@e-evolution.com see FR 1906632 https://sourceforge.net/p/adempiere/feature-requests/382/, Teo Sarca, www.arhipac.ro
  • FR [ 2581145 ] Jasper: Provide parameters info, Cristina Ghita, www.arhipac.ro
  • BF [ 2778472 ] Subreport bug
    • Constructor Detail

      • ReportStarter

        public ReportStarter()
    • Method Detail

      • getConnection

        protected Connection getConnection()
        Returns read only connection for reporting author Ashley Ramdass
        Returns:
        Connection DB Connection
      • startProcess

        public boolean startProcess​(Properties ctx,
                                    ProcessInfo pi,
                                    Trx trx)
        Start the process. It should only return false, if the function could not be performed as this causes the process to abort. author rlemeill
        Specified by:
        startProcess in interface ProcessCall
        Parameters:
        ctx - context
        pi - standard process info
        trx -
        Returns:
        true if success
      • getReport

        protected Object getReport​(String reportPath,
                                   String reportType)
        author alinv
        Parameters:
        reportPath -
        reportType - optional postfix parameter to select a different jasper report file
        Returns:
        File or URL
      • getReport

        protected Object getReport​(String reportPath)
        author alinv
        Parameters:
        reportPath -
        Returns:
        File or URL
      • getJasperInfo

        protected org.adempiere.report.jasper.ReportStarter.JasperInfo getJasperInfo​(File reportFile)
        Process/Compile report file author rlemeill
        Parameters:
        reportFile -
        Returns:
        JasperInfo
      • getJasperInfo

        protected org.adempiere.report.jasper.ReportStarter.JasperInfo getJasperInfo​(URL reportURL)