/* * 当且仅当userid为当前节点审批人时才可以退回(注:系统管理员ID都不行) * 另:退回必须是有设置退回节点"线"的才可以退回 */ public void flowReject(int requestid,int userid,String rejectMes){ RequestService rqs = new RequestService(); boolean nextNodeByReject = rqs.nextNodeByReject(requestid,userid,rejectMes); if(!nextNodeByReject){ log.info("----------------"+requestid+"流程退回失败--------------"); } }
//当且仅当userid为当前节点审批人时才可以提交(注:系统管理员ID都不行) public void flowSubmit(int requestid,int userid,String submitMes){ RequestService rqs = new RequestService(); RequestInfo request = rqs.getRequest(requestid);//获取请求对象 boolean returnstr = rqs.nextNodeBySubmit(request, requestid, userid, submitMes);//执行流程提交操作 if(!returnstr){ log.info("----------------"+requestid+"流程提交失败--------------"); } }
方法2
// 流程提交 WorkflowServiceImpl workflowServiceImpl = new WorkflowServiceImpl(); workflowServiceImpl.submitWorkflowRequest(null, Integer.parseInt(requestid), Integer.parseInt(employeeCode), "submit", "自动提交")
标签:rqs,int,userid,接口,E8,提交,退回,requestid From: https://www.cnblogs.com/yitian-lg/p/17375891.html