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