Commit b73fc51e by guo_minglei@163.com

修改快照记录

parent cbb498b2
...@@ -108,6 +108,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper { ...@@ -108,6 +108,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
flowStatusSnapshoot.setFailNode(nodeStatistic.getFail()); flowStatusSnapshoot.setFailNode(nodeStatistic.getFail());
flowStatusSnapshoot.setKillNode(nodeStatistic.getKill()); flowStatusSnapshoot.setKillNode(nodeStatistic.getKill());
}else { }else {
nodeStatistic = new StatisticData();
//不存在节点的运行日志 //不存在节点的运行日志
nodeStatistic.setUnstart(flow.getFlowNodeCount()); nodeStatistic.setUnstart(flow.getFlowNodeCount());
} }
...@@ -117,6 +118,8 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper { ...@@ -117,6 +118,8 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
flowStatusSnapshoot.setUnstartNode(flow.getFlowNodeCount()); flowStatusSnapshoot.setUnstartNode(flow.getFlowNodeCount());
} }
flowStatusSnapshootList.add(flowStatusSnapshoot); flowStatusSnapshootList.add(flowStatusSnapshoot);
/*
排队的运行实例已经放在run_recording表中,无需二次记录
//获取排队的运行实例 //获取排队的运行实例
List<WaitingRecord> waitingRecordList = waitingRecordMapper.findByFlowId(flow.getFlowId()); List<WaitingRecord> waitingRecordList = waitingRecordMapper.findByFlowId(flow.getFlowId());
if (waitingRecordList != null && waitingRecordList.size() > 0){ if (waitingRecordList != null && waitingRecordList.size() > 0){
...@@ -138,7 +141,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper { ...@@ -138,7 +141,7 @@ public class StatusSnapshootThreadRunHelper extends BaseThreadRunHelper {
} }
flowStatusSnapshootList.add(waitingStatusSnapshoot); flowStatusSnapshootList.add(waitingStatusSnapshoot);
}); });
} }*/
}); });
if (flowList != null && flowList.size() > 0){ if (flowList != null && flowList.size() > 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment