Package com.mossle.bpm.persistence.domain

Examples of com.mossle.bpm.persistence.domain.BpmTaskDefNotice


    @RequestMapping("bpm-task-def-notice-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            BpmTaskDefNotice bpmTaskDefNotice = bpmTaskDefNoticeManager.get(id);
            model.addAttribute("model", bpmTaskDefNotice);
        }

        List<BpmMailTemplate> bpmMailTemplates = bpmMailTemplateManager
                .getAll();
View Full Code Here


    @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",
                "保存成功");
View Full Code Here

        exportor.export(response, tableModel);
    }

    @RequestMapping("bpm-task-def-notice-removeNotice")
    public String removeNotice(@RequestParam("id") Long id) {
        BpmTaskDefNotice bpmTaskDefNotice = bpmTaskDefNoticeManager.get(id);
        Long bpmProcessId = bpmTaskDefNotice.getBpmProcess().getId();
        bpmTaskDefNoticeManager.remove(bpmTaskDefNotice);

        return "redirect:/bpm/bpm-task-def-notice-list.do?bpmProcessId="
                + bpmProcessId;
    }
View Full Code Here

TOP

Related Classes of com.mossle.bpm.persistence.domain.BpmTaskDefNotice

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.