|
@@ -5,11 +5,13 @@ import org.activiti.engine.ActivitiException;
|
|
|
import org.activiti.engine.delegate.DelegateExecution;
|
|
import org.activiti.engine.delegate.DelegateExecution;
|
|
|
import org.activiti.engine.delegate.ExecutionListener;
|
|
import org.activiti.engine.delegate.ExecutionListener;
|
|
|
import org.activiti.engine.delegate.Expression;
|
|
import org.activiti.engine.delegate.Expression;
|
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
@Component("evaApprovalByBusinessRefuseService")
|
|
@Component("evaApprovalByBusinessRefuseService")
|
|
|
public class EvaApprovalByBusinessRefuseService implements ExecutionListener {
|
|
public class EvaApprovalByBusinessRefuseService implements ExecutionListener {
|
|
|
-
|
|
|
|
|
|
|
+ private static final Logger logger = LoggerFactory.getLogger(EvaApprovalByBusinessRefuseService.class);
|
|
|
private Expression stepCode;
|
|
private Expression stepCode;
|
|
|
// 审批驳回
|
|
// 审批驳回
|
|
|
@Override
|
|
@Override
|
|
@@ -26,9 +28,11 @@ public class EvaApprovalByBusinessRefuseService implements ExecutionListener {
|
|
|
String taskName = delegateExecution.getEventName();
|
|
String taskName = delegateExecution.getEventName();
|
|
|
createUserId = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey + "&stepCode=" + nowStepCode);
|
|
createUserId = HttpRequest.sendGet(approveUrl, "businessKey=" + businessKey + "&stepCode=" + nowStepCode);
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ logger.error("合同日常评审 线 驳回。无回调地址" + businessKey);
|
|
|
throw new ActivitiException("无回调地址,请联系管理员!");
|
|
throw new ActivitiException("无回调地址,请联系管理员!");
|
|
|
}
|
|
}
|
|
|
if (createUserId.length() <= 0) {
|
|
if (createUserId.length() <= 0) {
|
|
|
|
|
+ logger.error("合同日常评审 线 驳回。驳回审批失败" + businessKey);
|
|
|
throw new ActivitiException("驳回审批失败!请联系管理员!");
|
|
throw new ActivitiException("驳回审批失败!请联系管理员!");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -45,7 +49,7 @@ public class EvaApprovalByBusinessRefuseService implements ExecutionListener {
|
|
|
} else if (nowStepCode.equals("-10")) {
|
|
} else if (nowStepCode.equals("-10")) {
|
|
|
delegateExecution.setVariableLocal("refuseName", "二级单位分办未通过");
|
|
delegateExecution.setVariableLocal("refuseName", "二级单位分办未通过");
|
|
|
}
|
|
}
|
|
|
- System.out.println("合同日常评审 线 驳回: " + nowStepCode);
|
|
|
|
|
|
|
+ logger.info("合同日常评审 线 驳回: " + nowStepCode + " businessKey:" + businessKey);
|
|
|
delegateExecution.setVariable("backUsers", createUserId);
|
|
delegateExecution.setVariable("backUsers", createUserId);
|
|
|
delegateExecution.setVariableLocal("backUsers", createUserId);
|
|
delegateExecution.setVariableLocal("backUsers", createUserId);
|
|
|
}
|
|
}
|