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; - } - -} - -