Go to file
Lucio Lelii f297a057de feat(validation): attribute subflow errors to the container and the inner element
Errors produced inside a container's subflow were remapped to the
container (entity=container, id=containerId, field=specificConfiguration.subFlow)
but the inner element's own id was overwritten and lost, so a client
could tell WHICH container had a problem but not WHICH inner node/
connection. And a LoopContainer's guardSubFlow errors only surfaced as
a single CONTAINER_SUBFLOW_INVALID whose message was a nested JSON blob.

- remapSubFlowErrors now preserves the offending inner element's id in
  relatedNodeIds (deduped, forward of any it already carried), so the UI
  can highlight the specific inner node/connection when the container is
  opened - not just the container.
- The guard subflow is now recursed and exploded the same way as the
  body (field specificConfiguration.guardSubFlow), so guard errors come
  through as individual, typed, node-pointed errors instead of a nested
  JSON blob. No-op for a valid (backend-generated) guard, so no
  regression for normal flows.

Test: a container whose subflow has a dangling inner connection saves as
a draft, and GET /flows/{id}/validation reports the error with
entity=container, the container id, field=specificConfiguration.subFlow,
and the inner connection id in relatedNodeIds. 446/446 (excl. the known
loop-timing flake).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-08-03 17:34:38 +02:00
.mvn/wrapper upgrade to springboot 4 2026-05-05 19:22:53 +02:00
src feat(validation): attribute subflow errors to the container and the inner element 2026-08-03 17:34:38 +02:00
.gitattributes first commit 2025-03-27 11:38:06 +01:00
.gitignore Improve assistant model routing and diagnostics 2026-05-20 12:27:09 +02:00
Dockerfile Update Dockerfile for Java 25 2026-04-17 14:11:02 +02:00
mvnw first commit 2025-03-27 11:38:06 +01:00
mvnw.cmd first commit 2025-03-27 11:38:06 +01:00
ollama-preloaded-docker image for test with ollama added 2025-09-29 17:00:57 +02:00
pom.xml fix: add missing Flyway autoconfiguration and shorten an overlong flow description 2026-07-22 15:24:51 +02:00