|
@@ -197,14 +197,14 @@ public class TaskWorkNode {
|
|
|
AAutoNodeLog log = AAutoNodeLog.builder().build();
|
|
|
log.setExeResult("0").setManual("0").setFeedback("当前任务节点为空");
|
|
|
autoNodeLogService.save(log);
|
|
|
- throw new RuntimeException("当前任务节点为空");
|
|
|
+ throw new RuntimeException("节点参数异常");
|
|
|
}
|
|
|
TTask tTask = taskMapper.selectById(taskNode.getTaskId());
|
|
|
if (tTask == null || tTask.getStatus() == "3") {
|
|
|
AAutoNodeLog log = AAutoNodeLog.builder().build();
|
|
|
log.setTaskNodeId(taskNode.getId()).setExeResult("0").setManual("0").setFeedback("当前任务为空");
|
|
|
autoNodeLogService.save(log);
|
|
|
- throw new RuntimeException("当前任务为空");
|
|
|
+ throw new RuntimeException("节点参数异常");
|
|
|
}
|
|
|
// //获取配置序数据
|
|
|
//任务初始化判断
|
|
@@ -332,7 +332,7 @@ public class TaskWorkNode {
|
|
|
} catch (BizException e) {
|
|
|
e.printStackTrace();
|
|
|
JSONObject errJsonObject = new JSONObject();
|
|
|
- errJsonObject.put("code", "2");
|
|
|
+ errJsonObject.put("code", "exception");
|
|
|
errJsonObject.put("msg", e.getMessage());
|
|
|
returnData = errJsonObject.toJSONString();
|
|
|
logger.error("调用接口发生异常" + e.getMessage());
|
|
@@ -355,6 +355,8 @@ public class TaskWorkNode {
|
|
|
//执行异常处理(无须人工处理和警报提示)
|
|
|
log.setExeResult("0").setManual("0").setFeedback(retJson.getString("msg"));
|
|
|
}
|
|
|
+ }else{
|
|
|
+ log.setExeResult("0").setManual("0").setFeedback("接口响应超时");
|
|
|
}
|
|
|
if (log.getId() == null) {
|
|
|
autoNodeLogService.save(log);
|