@RequestMapping("bpm-task-def-notice-save")
public String save(@ModelAttribute BpmTaskDefNotice bpmTaskDefNotice,
@RequestParam("bpmProcessId") Long bpmProcessId,
@RequestParam("bpmMailTemplateId") Long bpmMailTemplateId,
RedirectAttributes redirectAttributes) {
BpmTaskDefNotice dest = null;
Long id = bpmTaskDefNotice.getId();
if (id != null) {
dest = bpmTaskDefNoticeManager.get(id);
beanMapper.copy(bpmTaskDefNotice, dest);
} else {
dest = bpmTaskDefNotice;
}
dest.setBpmProcess(bpmProcessManager.get(bpmProcessId));
dest.setBpmMailTemplate(bpmMailTemplateManager.get(bpmMailTemplateId));
bpmTaskDefNoticeManager.save(dest);
messageHelper.addFlashMessage(redirectAttributes, "core.success.save",
"保存成功");