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