@Override public void init(DeptSubParamVo params) { this.params = params; this.vo = params.vo; this.userInfo = params.userInfo; // this.userInfo.initTaskUser(params.getProcessParamValue("taskuser")); this.externalService.setToken(userInfo.getToken()); this.resultInfo = params.resultInfo; }
@SuppressWarnings({"unchecked", "rawtypes"}) private boolean flowLeaderDeal() { // log.debug("flowLeaderDeal"); String taskUserLoginName = LoginUtil.getUserLoginName(userInfo); String pname = params.getProcessParamValue("pname"); String cname = params.getProcessParamValue("cname"); String cincident = params.getProcessParamValue("cincident"); String steplabel = params.getProcessParamValue("steplabel"); String choice = StringUtil.getNotNullValueString(vo.getChoice()); String choice2 = StringUtil.getNotNullValueString(vo.getChoice2()); String summary = FlowUtil.getSummaryByProcessInfo(cname, cincident); this.vo.initList(); Map map = new HashMap(); String recvId = ""; List<OrganUserBo> userBoList = externalService.getProcessReceivers( pname, DeptSubStepConstants.STEPNAME_DISPATCHER, userInfo.getDeptId()); if (userBoList != null && userBoList.size() > 0) { recvId = userBoList.get(0).loginName; } if (DeptSubConstants.CHOICE_LEADER_PASS.equals(choice)) { map.put("部门处理人姓名汇总", 0); map.put("部门领导姓名", 0); } else if (DeptSubConstants.CHOICE_LEADER_FAILED.equals(choice)) { map.put("部门处理人姓名汇总", 0); map.put("部门领导姓名", 0); } else if (DeptSubConstants.CHOICE_LEADER_CONTINUE.equals(choice)) { if (DeptSubConstants.CHOICE_LEADER_CONTINUE_DEAL.equals(choice2)) { map.put("返回修改", "1"); map.put("部门接收人帐号", recvId); } else if (DeptSubConstants.CHOICE_LEADER_CONTINUE_CHOICE_PERSON.equals(choice2)) { if (vo.getDealPersonList().size() > 0) { FlowUtil.putUltimusMap("部门处理人帐号", vo.getDealPersonList(), map); } map.put("部门处理人姓名汇总", vo.getDealPersonList().size()); if (vo.getDealLeaderList().size() > 0) { map.put("部门领导帐号", vo.getDealLeaderStr()); } map.put("部门领导姓名", vo.getDealLeaderList().size()); map.put("部门接收人帐号", recvId); } } // boolean flag = false; boolean flag = ProcessUtil.launchProcessStep( cname, taskUserLoginName, Integer.parseInt(cincident), steplabel, summary, "", map); return flag; }