Package org.joget.report.model

Examples of org.joget.report.model.ReportWorkflowProcess


                //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);
            }

            pInstance.setRequester(wfTrackProcess.getRequesterId());
            pInstance.setState(wfProcess.getState());
View Full Code Here


            return reportWorkflowPackage;
        }
    }

    public ReportWorkflowProcess getReportWorkflowProcess(ReportWorkflowPackage reportWorkflowPackage, String processDefId, String processName) {
        ReportWorkflowProcess reportWorkflowProcess = reportWorkflowProcessDao.getReportWorkflowProcess(reportWorkflowPackage.getReportApp().getAppId(), reportWorkflowPackage.getReportApp().getAppVersion(), processDefId);
        if (reportWorkflowProcess == null) {
            reportWorkflowProcess = new ReportWorkflowProcess();
            reportWorkflowProcess.setReportWorkflowPackage(reportWorkflowPackage);
            reportWorkflowProcess.setProcessDefId(processDefId);
            reportWorkflowProcess.setProcessName(processName);
            if (reportWorkflowProcessDao.saveReportWorkflowProcess(reportWorkflowProcess)) {
                return reportWorkflowProcessDao.getReportWorkflowProcess(reportWorkflowPackage.getReportApp().getAppId(), reportWorkflowPackage.getReportApp().getAppVersion(), processDefId);
            } else {
                return null;
            }
View Full Code Here

TOP

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

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.