return reportWorkflowProcess;
}
}
public ReportWorkflowActivity getReportWorkflowActivity(ReportWorkflowProcess reportWorkflowProcess, String activityDefId, String activityName) {
ReportWorkflowActivity reportWorkflowActivity = reportWorkflowActivityDao.getReportWorkflowActivity(reportWorkflowProcess.getReportWorkflowPackage().getReportApp().getAppId(), reportWorkflowProcess.getReportWorkflowPackage().getReportApp().getAppVersion(), reportWorkflowProcess.getProcessDefId(), activityDefId);
if (reportWorkflowActivity == null) {
reportWorkflowActivity = new ReportWorkflowActivity();
reportWorkflowActivity.setReportWorkflowProcess(reportWorkflowProcess);
reportWorkflowActivity.setActivityDefId(activityDefId);
reportWorkflowActivity.setActivityName(activityName);
if (reportWorkflowActivityDao.saveReportWorkflowActivity(reportWorkflowActivity)) {
return reportWorkflowActivityDao.getReportWorkflowActivity(reportWorkflowProcess.getReportWorkflowPackage().getReportApp().getAppId(), reportWorkflowProcess.getReportWorkflowPackage().getReportApp().getAppVersion(), reportWorkflowProcess.getProcessDefId(), activityDefId);
} else {
return null;
}