Package com.mossle.bpm.persistence.manager

Examples of com.mossle.bpm.persistence.manager.BpmTaskConfManager


    public String execute(CommandContext commandContext) {
        List<String> taskDefinitionKeys = getParameterValues("taskDefinitionKeys");
        List<String> taskAssignees = getParameterValues("taskAssignees");
        String businessKey = new SaveDraftOperation().execute(getParameters());
        BpmTaskConfManager bpmTaskConfManager = getBpmTaskConfManager();

        if (taskDefinitionKeys != null) {
            // 如果是从配置任务负责人的页面过来,就保存TaskConf,再从草稿中得到数据启动流程
            int index = 0;

            for (String taskDefinitionKey : taskDefinitionKeys) {
                String taskAssignee = taskAssignees.get(index++);
                BpmTaskConf bpmTaskConf = new BpmTaskConf();
                bpmTaskConf.setBusinessKey(businessKey);
                bpmTaskConf.setTaskDefinitionKey(taskDefinitionKey);
                bpmTaskConf.setAssignee(taskAssignee);
                bpmTaskConfManager.save(bpmTaskConf);
            }
        }

        return businessKey;
    }
View Full Code Here

TOP

Related Classes of com.mossle.bpm.persistence.manager.BpmTaskConfManager

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.