diff --git a/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java b/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java index b9f8e2956..e9d36be3a 100644 --- a/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java +++ b/liteflow-core/src/main/java/com/yomahub/liteflow/core/NodeComponent.java @@ -113,6 +113,9 @@ public abstract class NodeComponent{ } throw e; } finally { + //后置处理 + self.afterProcess(this.getNodeId(), slot); + stopWatch.stop(); final long timeSpent = stopWatch.getTotalTimeMillis(); LOG.debug("[{}]:component[{}] finished in {} milliseconds",slot.getRequestId(),this.getDisplayName(),timeSpent); @@ -120,9 +123,6 @@ public abstract class NodeComponent{ //往CmpStep中放入时间消耗信息 cmpStep.setTimeSpent(timeSpent); - //后置处理 - self.afterProcess(this.getNodeId(), slot); - // 性能统计 if (ObjectUtil.isNotNull(monitorBus)) { CompStatistics statistics = new CompStatistics(this.getClass().getSimpleName(), timeSpent);