2、RVariableinst>vars,StringuserId,StringuserName,StringccUsers);代碼示例://從前臺(tái)得到需要的參數(shù)StringprocEName=reqDTO.getValue("procEName");StringprocVersion=reqDTO.getValue("procVersion");StringccUsers=reqDTO.getValue("ccUsers");WFUtilsutils=newWFUtils();//通過(guò)WFUtils.getProcVariable()得到流程實(shí)例變量Listvariab
3、les=utils.getProcVariable(reqDTO);//得到IProcInstSrv流程調(diào)用接口IProcInstSrvprocInstSrv=MemberCache.getInstance().getProcInstSrv();//調(diào)用啟動(dòng)流程實(shí)例接口procInstSrv.startProc(procEName,procVersion,variables,userToken.getUserId(),userToken.getUserName(),ccUsers);2.得到待審批列表/***根據(jù)當(dāng)前用戶(hù)和模板類(lèi)型得到待審批列表*@paramuserI
4、d用戶(hù)ID*@paramprocType流程類(lèi)型*examineinstId審批實(shí)例Id一般設(shè)為空字符串即可*examineRoleId角色I(xiàn)d*@return*/publicListgetExamineInstListByUserID(StringuserId,StringprocType,StringexamineinstId,StringexamineRoleId);代碼示例://列表分頁(yè)顯示代碼部分StringcurrentPage=msg.getValue("currentPage");if(currentPage==null
5、
6、currentPage.tr
7、im().equals(""))currentPage="1";StringpageSize=msg.getValue("pageSize");if(pageSize==null
8、
9、pageSize.trim().equals("")){ConfigHandlercfgHd=ConfigFactory.getCfgHandler();pageSize=cfgHd.getSingleNodeValue("http://pagination/pageSize");}UserTokenuserToken=reqDTO.getUserToken();//從前臺(tái)頁(yè)面得到參數(shù)Stringp
10、rocType="";StringuserId=userToken.getUserId();StringorgId=userToken.getOrgId();StringexamineRoleId=userToken.getRoleIds();//得到調(diào)用接口IProcInstSrvprocInstSrv=MemberCache.getInstance().getProcInstSrv();//通過(guò)接口得到待審批列表Listlist=procInstSrv.getExamineInstListByUserID(userId,procType,"",examineRol
11、eId);msg.setValue("datas",list);msg.setValue("totalRows",list.size());3.得到審批頁(yè)面顯示信息/***點(diǎn)擊審批時(shí)得到審批實(shí)例的所有信息和所有下級(jí)節(jié)點(diǎn)*@paramprocinstId流程實(shí)例Id*@paramexamineinstId審批實(shí)例Id*@paramprocType流程類(lèi)型,一般為空字符串*@paramuserId當(dāng)前用戶(hù)Id*@return*/publicMapgetExamineInfo(StringprocinstId,StringexamineinstId,Str