Package org.joget.report.model

Examples of org.joget.report.model.ReportWorkflowPackage


                //get app
                AppDefinition appDef = appService.getAppDefinition(appId, appVersion);
                ReportApp reportApp = reportManager.getReportApp(appId, appVersion, appDef.getName());

                //get package
                ReportWorkflowPackage reportPackage = reportManager.getReportWorkflowPackage(reportApp, wfProcess.getPackageId(), wfProcess.getVersion(), wfProcess.getName());

                //get process
                ReportWorkflowProcess reportProcess = reportManager.getReportWorkflowProcess(reportPackage, wfProcess.getIdWithoutVersion(), wfProcess.getName());
                pInstance.setReportWorkflowProcess(reportProcess);
            }
View Full Code Here


            return reportApp;
        }
    }

    public ReportWorkflowPackage getReportWorkflowPackage(ReportApp reportApp, String packageId, String packageVersion, String packageName) {
        ReportWorkflowPackage reportWorkflowPackage = reportWorkflowPackageDao.getReportWorkflowPackage(reportApp.getAppId(), reportApp.getAppVersion(), packageId, packageVersion);
        if (reportWorkflowPackage == null) {
            reportWorkflowPackage = new ReportWorkflowPackage();
            reportWorkflowPackage.setReportApp(reportApp);
            reportWorkflowPackage.setPackageId(packageId);
            reportWorkflowPackage.setPackageName(packageName);
            reportWorkflowPackage.setPackageVersion(packageVersion);
            if (reportWorkflowPackageDao.saveReportWorkflowPackage(reportWorkflowPackage)) {
                return reportWorkflowPackageDao.getReportWorkflowPackage(reportApp.getAppId(), reportApp.getAppVersion(), packageId, packageVersion);
            } else {
                return null;
            }
View Full Code Here

TOP

Related Classes of org.joget.report.model.ReportWorkflowPackage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.