fix: remove references to deleted ProcessorExecution tree fields
cameleer3-common removed children, loopIndex, splitIndex, multicastIndex from ProcessorExecution (flat model only now). Iteration context lives on synthetic wrapper nodes via processorType. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,7 @@ public class DetailService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Convert agent ProcessorExecution tree to detail ProcessorNode tree. */
|
/** Convert agent ProcessorExecution list to detail ProcessorNode list. */
|
||||||
private List<ProcessorNode> convertProcessors(List<ProcessorExecution> executions) {
|
private List<ProcessorNode> convertProcessors(List<ProcessorExecution> executions) {
|
||||||
if (executions == null) return List.of();
|
if (executions == null) return List.of();
|
||||||
List<ProcessorNode> result = new ArrayList<>();
|
List<ProcessorNode> result = new ArrayList<>();
|
||||||
@@ -89,9 +89,7 @@ public class DetailService {
|
|||||||
p.getDurationMs(),
|
p.getDurationMs(),
|
||||||
p.getErrorMessage(), p.getErrorStackTrace(),
|
p.getErrorMessage(), p.getErrorStackTrace(),
|
||||||
p.getAttributes() != null ? new LinkedHashMap<>(p.getAttributes()) : null,
|
p.getAttributes() != null ? new LinkedHashMap<>(p.getAttributes()) : null,
|
||||||
p.getLoopIndex(), p.getLoopSize(),
|
null, null, null, null, null,
|
||||||
p.getSplitIndex(), p.getSplitSize(),
|
|
||||||
p.getMulticastIndex(),
|
|
||||||
p.getResolvedEndpointUri(),
|
p.getResolvedEndpointUri(),
|
||||||
p.getErrorType(), p.getErrorCategory(),
|
p.getErrorType(), p.getErrorCategory(),
|
||||||
p.getRootCauseType(), p.getRootCauseMessage(),
|
p.getRootCauseType(), p.getRootCauseMessage(),
|
||||||
@@ -100,9 +98,6 @@ public class DetailService {
|
|||||||
p.getFilterMatched(), p.getDuplicateMessage(),
|
p.getFilterMatched(), p.getDuplicateMessage(),
|
||||||
hasTrace
|
hasTrace
|
||||||
);
|
);
|
||||||
for (ProcessorNode child : convertProcessors(p.getChildren())) {
|
|
||||||
node.addChild(child);
|
|
||||||
}
|
|
||||||
result.add(node);
|
result.add(node);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ public class IngestionService {
|
|||||||
if (processors == null) return false;
|
if (processors == null) return false;
|
||||||
for (ProcessorExecution p : processors) {
|
for (ProcessorExecution p : processors) {
|
||||||
if (p.getInputBody() != null || p.getOutputBody() != null) return true;
|
if (p.getInputBody() != null || p.getOutputBody() != null) return true;
|
||||||
if (hasAnyTraceData(p.getChildren())) return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -155,20 +154,13 @@ public class IngestionService {
|
|||||||
truncateBody(p.getInputBody()), truncateBody(p.getOutputBody()),
|
truncateBody(p.getInputBody()), truncateBody(p.getOutputBody()),
|
||||||
toJson(p.getInputHeaders()), toJson(p.getOutputHeaders()),
|
toJson(p.getInputHeaders()), toJson(p.getOutputHeaders()),
|
||||||
toJson(p.getAttributes()),
|
toJson(p.getAttributes()),
|
||||||
p.getLoopIndex(), p.getLoopSize(),
|
null, null, null, null, null,
|
||||||
p.getSplitIndex(), p.getSplitSize(),
|
|
||||||
p.getMulticastIndex(),
|
|
||||||
p.getResolvedEndpointUri(),
|
p.getResolvedEndpointUri(),
|
||||||
p.getErrorType(), p.getErrorCategory(),
|
p.getErrorType(), p.getErrorCategory(),
|
||||||
p.getRootCauseType(), p.getRootCauseMessage(),
|
p.getRootCauseType(), p.getRootCauseMessage(),
|
||||||
p.getErrorHandlerType(), p.getCircuitBreakerState(),
|
p.getErrorHandlerType(), p.getCircuitBreakerState(),
|
||||||
p.getFallbackTriggered()
|
p.getFallbackTriggered()
|
||||||
));
|
));
|
||||||
if (p.getChildren() != null) {
|
|
||||||
flat.addAll(flattenProcessors(
|
|
||||||
p.getChildren(), executionId, execStartTime,
|
|
||||||
applicationName, routeId, p.getProcessorId(), depth + 1));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return flat;
|
return flat;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user