From 7dce1feb6561ab9befc3a9644e9e4e29bea8c18a Mon Sep 17 00:00:00 2001 From: shilei <798989044@qq.com> Date: Thu, 16 Nov 2023 14:01:44 +0800 Subject: [PATCH] =?UTF-8?q?#EC=5FHJ134#=20=E6=B5=81=E7=A8=8B=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E5=88=A0=E9=99=A4=EF=BC=8C=E8=BD=AC=E7=A7=BB=E5=88=B0?= =?UTF-8?q?SendPortalTodoCmd=EF=BC=8C=E7=BB=9F=E4=B8=80=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SendPortalMonitorInterventionCmd.java | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 src/com/customization/dito/monitor/SendPortalMonitorInterventionCmd.java diff --git a/src/com/customization/dito/monitor/SendPortalMonitorInterventionCmd.java b/src/com/customization/dito/monitor/SendPortalMonitorInterventionCmd.java deleted file mode 100644 index 4465a5b0..00000000 --- a/src/com/customization/dito/monitor/SendPortalMonitorInterventionCmd.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.customization.dito.monitor; - -import com.engine.core.cfg.annotation.CommandDynamicProxy; -import com.engine.core.interceptor.AbstractCommandProxy; -import com.engine.core.interceptor.Command; -import com.engine.workflow.cmd.requestForm.RequestSubmitCmd; -import com.engine.workflow.entity.requestForm.RequestOperationResultBean; -import weaver.general.BaseBean; -import weaver.general.Util; -import weaver.hrm.User; -import weaver.interfaces.dito.monitor.SendPortalMonitorUtil; -import javax.servlet.http.HttpServletRequest; -import java.util.Map; - -/*** - * - */ -@CommandDynamicProxy(target = RequestSubmitCmd.class, desc="流程监控流程干预推送门户") -public class SendPortalMonitorInterventionCmd extends AbstractCommandProxy> { - - @Override - public Map execute(Command> targetCommand) { - //获取到被代理对象 - RequestSubmitCmd requestSubmitCmd = (RequestSubmitCmd)targetCommand; - //获取被代理对象的参数 - //对参数做预处理 - - - BaseBean bb = new BaseBean(); - HttpServletRequest request = requestSubmitCmd.getRequest(); - String requestid = Util.null2String(request.getParameter("requestid")).trim(); - String workflowid = Util.null2String(request.getParameter("workflowid")).trim(); - String src = Util.null2String(request.getParameter("src")).trim(); - String nodeid = Util.null2String(request.getParameter("nodeid")); - String workflowname = Util.null2String(request.getParameter("workflowname")); - - - User user = requestSubmitCmd.getUser(); - String userid = user.getUID()+""; - bb.writeLog("requestid:"+requestid); - bb.writeLog("workflowid:"+workflowid); - bb.writeLog("src:"+src); - bb.writeLog("nodeid:"+nodeid); - bb.writeLog("workflowname:"+workflowname); - - //参数回写 - //执行标准的业务处理 - Map result = nextExecute(targetCommand); - //对返回值做加工处理 - RequestOperationResultBean resultBean = (RequestOperationResultBean) result.get("data"); - String executeResult = resultBean.getType().name(); - - if("SUCCESS".equals(executeResult)) - { - String new_requestid = Util.null2String(resultBean.getResultInfo().get("requestid")); - bb.writeLog("new_requestid:"+new_requestid); - - if(Util.getIntValue(requestid)> 0 && "intervenor".equals(src)){ - SendPortalMonitorUtil sendPortalMonitorUtil = new SendPortalMonitorUtil(); - sendPortalMonitorUtil.monitorIntervention(requestid,userid); - } - - } - return result; - } - -} - -