Bläddra i källkod

准入申请驳回给创建人

baichengfei 5 år sedan
förälder
incheckning
e2efb823f8

+ 5 - 3
src/main/java/com/common/workflow/service/activiti/supplierListener/ApprovalRefuseService.java

@@ -21,16 +21,18 @@ public class ApprovalRefuseService implements ExecutionListener {
 
         String approveUrl = callbackUrl + "/suppliercert-listener/approval-refuse";
 
-        String statusReset = "0";
+        String createUserId = "";
         if (callbackUrl.length() > 0) {
             // TODO 哪个环节被驳回的, 方便短信通知使用
             String taskName = delegateExecution.getEventName();
-            statusReset = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
+            createUserId = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey);
         } else {
             throw new ActivitiException("无回调地址,请联系管理员!");
         }
-        if (!statusReset.equals("1")) {
+        if (createUserId.length() <= 0) {
             throw new ActivitiException("驳回审批失败!请联系管理员!");
         }
+        delegateExecution.setVariable("users", createUserId);
+        delegateExecution.setVariableLocal("users", createUserId);
     }
 }