Examples of BpmProcess


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

    @RequestMapping("workspace-graphProcessDefinition")
    public void graphProcessDefinition(
            @RequestParam("bpmProcessId") Long bpmProcessId,
            HttpServletResponse response) throws Exception {
        BpmProcess bpmProcess = bpmProcessManager.get(bpmProcessId);
        String processDefinitionId = bpmProcess.getBpmConfBase()
                .getProcessDefinitionId();

        Command<InputStream> cmd = null;
        cmd = new ProcessDefinitionDiagramCmd(processDefinitionId);
View Full Code Here

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

    @RequestMapping("bpm-process-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            BpmProcess bpmProcess = bpmProcessManager.get(id);
            model.addAttribute("model", bpmProcess);
        }

        List<BpmCategory> bpmCategories = bpmCategoryManager.getAll();
        List<BpmConfBase> bpmConfBases = bpmConfBaseManager.getAll();
View Full Code Here

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

    @RequestMapping("bpm-process-save")
    public String save(@ModelAttribute BpmProcess bpmProcess,
            @RequestParam("bpmCategoryId") Long bpmCategoryId,
            @RequestParam("bpmConfBaseId") Long bpmConfBaseId,
            RedirectAttributes redirectAttributes) {
        BpmProcess dest = null;
        Long id = bpmProcess.getId();

        if (id != null) {
            dest = bpmProcessManager.get(id);
            beanMapper.copy(bpmProcess, dest);
        } else {
            dest = bpmProcess;
        }

        dest.setBpmCategory(bpmCategoryManager.get(bpmCategoryId));
        dest.setBpmConfBase(bpmConfBaseManager.get(bpmConfBaseId));
        bpmProcessManager.save(dest);

        messageHelper.addFlashMessage(redirectAttributes, "core.success.save",
                "保存成功");
View Full Code Here

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

    public Void execute(CommandContext commandContext) {
        ProcessEngine processEngine = getProcessEngine();
        FormTemplateManager formTemplateManager = getFormTemplateManager();
        KeyValue keyValue = getKeyValue();
        String bpmProcessId = getParameter(OPERATION_BPM_PROCESS_ID);
        BpmProcess bpmProcess = getBpmProcessManager().get(
                Long.parseLong(bpmProcessId));
        String processDefinitionId = bpmProcess.getBpmConfBase()
                .getProcessDefinitionId();

        // 先保存草稿
        String businessKey = new ConfAssigneeOperation()
                .execute(getParameters());
View Full Code Here

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

            @RequestParam(value = "businessKey", required = false) String businessKey,
            Model model) throws Exception {
        model.addAttribute("bpmProcessId", bpmProcessId);
        model.addAttribute("businessKey", businessKey);

        BpmProcess bpmProcess = bpmProcessManager.get(bpmProcessId);
        String processDefinitionId = bpmProcess.getBpmConfBase()
                .getProcessDefinitionId();

        FormInfo formInfo = processEngine.getManagementService()
                .executeCommand(new FindStartFormCmd(processDefinitionId));
        model.addAttribute("formInfo", formInfo);

        String nextStep = null;

        if (formInfo.isFormExists()) {
            // 如果找到了form,就显示表单
            if (Integer.valueOf(1).equals(bpmProcess.getUseTaskConf())) {
                // 如果需要配置负责人
                nextStep = "taskConf";
            } else {
                nextStep = "confirmStartProcess";
            }
View Full Code Here

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

        }

        businessKey = new SaveDraftOperation().execute(parameterMap);
        model.addAttribute("businessKey", businessKey);

        BpmProcess bpmProcess = bpmProcessManager.get(bpmProcessId);
        String processDefinitionId = bpmProcess.getBpmConfBase()
                .getProcessDefinitionId();

        if (Integer.valueOf(1).equals(bpmProcess.getUseTaskConf())) {
            // 如果需要配置负责人
            nextStep = "confirmStartProcess";
            model.addAttribute("nextStep", nextStep);

            FindTaskDefinitionsCmd cmd = new FindTaskDefinitionsCmd(
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.