/** * 激活流程节点 * * @param processName * @param taskUserLoginName * @param incidentno * @param steplabel * @param summary * @param memo * @param map * @return */ private boolean launchProcessStep( String processName, String taskUserLoginName, int incidentno, String steplabel, String summary, String memo, Map<String, Object> map) { log.debug("激活流程开始"); boolean flag = PWSUtil.completeStepTest( processName, taskUserLoginName, incidentno, steplabel, summary, memo, map); log.debug("激活流程结束,flag=" + flag); return flag; }
/** * 申请节点 * * @param mainVo * @param userInfo * @param params_dc * @throws Exception */ public boolean flowApply() { // UserVo userVo = params.userVo; String processName = StringUtil.getNotNullValueString(mainBo.getProcessname()); String incidentNo = StringUtil.getNotNullValueString(mainBo.getIncidentno()); // String summary = StringUtil.getNotNullValueString(mainBo.getTheme()); String summary = FlowUtil.getSummaryByProcessInfo(processName, incidentNo); Map<String, Object> map = new HashMap<String, Object>(); String taskUserLoginName = LoginUtil.getUserLoginName(userInfo); /** Ultimus签发节点信息 */ String sign_leader = StringUtil.getNotNullValueString( params.getParamObject(DeptContactConstants.PARAMS_KEY_SIGN_LEADER)); // log.debug(params.getParamObject(DeptcontactConstants.PARAMS_KEY_SIGN_LEADER)); // log.debug("param.size()="+params.param.size()); // log.debug("sign_leader:"+sign_leader); map.put(DeptContactFlowConstants.USER_SIGN, sign_leader); /** 签发 */ if (DeptContactConstants.CHOICE_APPLY_TO_SIGN.equals(operateVo.getChoice())) { map.put(DeptContactFlowConstants.TARGET, DeptContactFlowConstants.STEPNAME_SIGN); } /** 取消 */ if (DeptContactConstants.CHOICE_APPLY_TO_CANCEL.equals(operateVo.getChoice())) { map.put(DeptContactFlowConstants.TARGET, DeptContactFlowConstants.STEPNAME_END); } /**/ boolean flag = PWSUtil.completeStepTest( processName, taskUserLoginName, Integer.parseInt(incidentNo), operateVo.getSteplabel(), summary, "", map); return flag; // return false; }
/** * 发起新流程 * * @param processName * @param taskUserLoginName * @param summary * @param map * @return */ private int launchProcess( String processName, String taskUserLoginName, String summary, Map<String, Object> map) { log.debug("发起流程开始"); int incidentNo = PWSUtil.launchIncident(processName, taskUserLoginName, summary, map); return incidentNo; }