This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 18db5f537a37bb622885d823df9aaa67a0fe7872 Author: Claus Ibsen <[email protected]> AuthorDate: Thu Jun 25 08:27:17 2026 +0200 chore: fix AI Patterns page xrefs, nav generation, and fallback description Fix broken xrefs (error-handler, langchain4j-tokenizer) to use correct module prefixes. Exclude ai-patterns.adoc from auto-generated nav entries in PrepareDocSymlinksMojo to avoid duplicates with the template. Update Fallback entry to list onException as the general mechanism alongside the Circuit Breaker-specific onFallback. Co-Authored-By: Claude <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- core/camel-core-engine/src/main/docs/modules/eips/nav.adoc | 1 + .../src/main/docs/modules/eips/pages/ai-patterns.adoc | 8 ++++---- .../org/apache/camel/maven/packaging/PrepareDocSymlinksMojo.java | 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/camel-core-engine/src/main/docs/modules/eips/nav.adoc b/core/camel-core-engine/src/main/docs/modules/eips/nav.adoc index 0de05172f76a..69a90e9d895a 100644 --- a/core/camel-core-engine/src/main/docs/modules/eips/nav.adoc +++ b/core/camel-core-engine/src/main/docs/modules/eips/nav.adoc @@ -2,6 +2,7 @@ // make edits in docs/*nav.adoc.template files instead * xref:eips:enterprise-integration-patterns.adoc[Enterprise Integration Patterns] +* xref:eips:ai-patterns.adoc[AI Patterns] ** xref:aggregate-eip.adoc[Aggregate] ** xref:batchConfig-eip.adoc[BatchConfig] ** xref:bean-eip.adoc[Bean] diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/ai-patterns.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/ai-patterns.adoc index 7d288fb4ec79..a783c5882f69 100644 --- a/core/camel-core-engine/src/main/docs/modules/eips/pages/ai-patterns.adoc +++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/ai-patterns.adoc @@ -82,7 +82,7 @@ See also the full xref:enterprise-integration-patterns.adoc[Enterprise Integrati |Term |Camel EIP |Description |Retry -|xref:error-handler.adoc[Error Handler] +|xref:manual::error-handler.adoc[Error Handler] |Automatically retry failed message processing with configurable backoff. |Circuit Breaker @@ -90,8 +90,8 @@ See also the full xref:enterprise-integration-patterns.adoc[Enterprise Integrati |Stop calling a failing service and provide a fallback response. |Fallback -|xref:onFallback-eip.adoc[On Fallback] -|Define an alternative route when the primary processing fails. +|xref:manual::exception-clause.adoc[On Exception], xref:onFallback-eip.adoc[On Fallback] +|Handle exceptions with onException (general), or define a Circuit Breaker fallback with onFallback. |Dead Letter / Poison Pill |xref:dead-letter-channel.adoc[Dead Letter Channel] @@ -213,6 +213,6 @@ See also the full xref:enterprise-integration-patterns.adoc[Enterprise Integrati |Google's Agent-to-Agent protocol for communication between AI agents. |Tokenize / Chunk (for LLM) -|xref:ROOT:langchain4j-tokenizer.adoc[LangChain4j Tokenizer] +|xref:others:langchain4j-tokenizer.adoc[LangChain4j Tokenizer] |Split text into tokens or chunks sized for LLM context windows, using LangChain4j tokenizer strategies. |=== diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareDocSymlinksMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareDocSymlinksMojo.java index 79f7a42ae9db..79662c5330b3 100644 --- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareDocSymlinksMojo.java +++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareDocSymlinksMojo.java @@ -705,7 +705,8 @@ public class PrepareDocSymlinksMojo extends AbstractMojo { eips.asciidoc = new KindSpec( Collections.emptyList(), null, "core/camel-core-engine/src/main/docs/modules/eips/pages", null, null, - path -> !path.endsWith("enterprise-integration-patterns.adoc")); + path -> !path.endsWith("enterprise-integration-patterns.adoc") + && !path.endsWith("ai-patterns.adoc")); eips.json = new KindSpec( List.of("core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/{,**/}*.json"), null, "core/camel-core-engine/src/main/docs/modules/eips/examples/json", null, "eip", null);
