机器人节点后端提交流程ReqOperateRequestEntityrequestParamnewReqOperateRequestEntity();requestParam.setRequestId(Integer.parseInt(requestid));//待提交的流程idrequestParam.setRemark();//签字意见//流程流转扩展参数MapString,ObjectotherParams1newHashMap();otherParams1.put(needback,);//是否回复requestParam.setOtherParams(otherParams1);WorkflowRequestOperatePAoperatePA1ServiceUtil.getService(WorkflowRequestOperatePAImpl.class);PAResponseEntitypare1operatePA1.submitRequest(newUser(Integer.parseInt(1)),requestParam);log.info(提交是否成功pare1.getCode());if(!pare1.getCode().equals(PAResponseCode.SUCCESS)){result.put(code,1);result.put(subCode,1);result.put(msg,xxx流程提交失败错误代码:【pare1.getCode()】,错误信息【pare1.getReqFailMsg().getMsgInfo().toString();pare1.getErrMsg().toString()】);log.info(提交流程失败 --- result.toJSONString());returnresult.toJSONString();}获取接口请求体参数和接口里调用其他接口输出参数StringBuildersbnewStringBuilder();BufferedReaderreadernewBufferedReader(newInputStreamReader(request.getInputStream(),StandardCharsets.UTF_8));Stringline;while((linereader.readLine())!null){sb.append(line);}JSONObjectrequestParamsJSONObject.parseObject(sb.toString());try(OutputStreamosconn.getOutputStream()){byte[]inputjsonObject.toJSONString().getBytes(UTF-8);os.write(input,0,input.length);}根据 requestid 获取表单名selecttablenamefromworkflow_bill a,workflow_base b,workflow_requestbase cwherea.idb.formidandb.idc.workflowidandc.requestid?预测流程下一节点是否为归档节点如果为归档节点弹窗确认letnodeids[547]// 配置需要使用功能的公文流程的 nodeidjQuery().ready(function(){WfForm.registerCheckEvent(WfForm.OPER_SUBMIT,function(callback){const{nodeid}WfForm.getBaseInfo()if(!nodeids.includes(nodeid)){$.ajax({url:/api/workflow/layout/getSimpleModeData,data:{requestid:WfForm.getBaseInfo().requestid},dataType:json,type:post,async:false,success:function(response,status){constnodeInfoCollectionArray.from(response.nodeInfo);for(constitemofnodeInfoCollection){if(item.nodeType3){if(item.ntype3){WfForm.showConfirm(即将办结本流程,function(){callback()},function(){},{title:办结确认,okText:确定,cancelText:取消});}else{callback()}break}}}})}else{WfForm.showConfirm(即将办结本流程,function(){callback()},function(){},{title:办结确认,okText:确定,cancelText:取消});}})})