This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch q4g-docs
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a2b677d9f39128cb22af67ed320c31c75b0585b8
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Dec 6 08:50:40 2026 +0100

    chore: docs for onException useOriginalBody in a split, the last split 
message, and the slip endpoint of the Dynamic Router
    
    - onException useOriginalMessage/useOriginalBody: say what the steps of the 
onException get (the message as it came
      in, and inside a Splitter the split message), not only the dead letter 
queue.
    - Split EIP: a section on doing something after the last split message 
(CamelSplitComplete, CamelSplitSize), which
      also works in streaming mode.
    - Exchange.SLIP_ENDPOINT (CamelSlipEndpoint) is also set by the Dynamic 
Router, so it is listed for dynamicRouter too,
      with how an expression can use it to stop.
    
    Found in the local-model benchmark (qwen4, Dec 2026), where a model wrote 
the parsed Map instead of the rejected line,
    did not find how to log after the last line, and made up a slip endpoint 
property for the Dynamic Router.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDi5iQNgtHrDdz2NpwF
---
 .../org/apache/camel/catalog/docs/split-eip.adoc   | 68 ++++++++++++++++++++++
 .../apache/camel/catalog/models/dynamicRouter.json |  3 +
 .../apache/camel/catalog/models/onException.json   |  4 +-
 .../apache/camel/catalog/models/routingSlip.json   |  2 +-
 .../apache/camel/catalog/schemas/camel-spring.xsd  | 12 ++--
 .../apache/camel/catalog/schemas/camel-xml-io.xsd  | 12 ++--
 .../src/main/java/org/apache/camel/Exchange.java   |  6 +-
 .../main/docs/modules/eips/pages/split-eip.adoc    | 68 ++++++++++++++++++++++
 .../org/apache/camel/model/dynamicRouter.json      |  3 +
 .../org/apache/camel/model/onException.json        |  4 +-
 .../org/apache/camel/model/routingSlip.json        |  2 +-
 .../apache/camel/model/OnExceptionDefinition.java  | 16 ++---
 .../dsl/jbang/core/commands/ai/eip-samples.json    |  4 ++
 .../dsl/yaml/deserializers/ModelDeserializers.java |  4 +-
 .../resources/schema/camelYamlDsl-canonical.json   |  4 +-
 .../resources/schema/camelYamlDsl-model.json       |  4 +-
 .../generated/resources/schema/camelYamlDsl.json   |  4 +-
 17 files changed, 188 insertions(+), 32 deletions(-)

diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/split-eip.adoc
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/split-eip.adoc
index 0fa561d8e36f..61b07902efc1 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/split-eip.adoc
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/split-eip.adoc
@@ -381,6 +381,74 @@ The Splitter will by default return the original input 
message.
 
 You can control this by using a custom `AggregationStrategy`.
 
+=== Doing something after the last split message
+
+The split messages are copies of the input message, and the Splitter returns 
the original input message when it is
+complete. So a header, property or variable that you set while processing a 
split message is gone after the split.
+
+To do something once all the messages are split, such as logging how many 
lines a file had, use a
+xref:filter-eip.adoc[Filter] inside the split that matches only the last split 
message.
+The exchange property `CamelSplitComplete` is `true` for the last split 
message, and `CamelSplitSize` holds the total number of split messages.
+This also works in streaming mode, where `CamelSplitSize` is only set on the 
last split message.
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:inbox")
+    .split(body().tokenize("\n")).streaming()
+        .to("direct:line")
+        .filter(exchangeProperty(Exchange.SPLIT_COMPLETE))
+            .log("File ${file:name} done: ${exchangeProperty.CamelSplitSize} 
lines")
+        .end()
+    .end();
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+    <from uri="file:inbox"/>
+    <split streaming="true">
+        <tokenize token="\n"/>
+        <to uri="direct:line"/>
+        <filter>
+            <simple>${exchangeProperty.CamelSplitComplete}</simple>
+            <log message="File ${file:name} done: 
${exchangeProperty.CamelSplitSize} lines"/>
+        </filter>
+    </split>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:inbox
+      steps:
+        - split:
+            expression:
+              tokenize:
+                token: "\n"
+            streaming: true
+            steps:
+              - to:
+                  uri: direct:line
+              - filter:
+                  expression:
+                    simple:
+                      expression: "${exchangeProperty.CamelSplitComplete}"
+                  steps:
+                    - log:
+                        message: "File ${file:name} done: 
${exchangeProperty.CamelSplitSize} lines"
+----
+====
+
 === Aggregating
 
 The `AggregationStrategy` is used for aggregating all the split exchanges 
together
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/dynamicRouter.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/dynamicRouter.json
index f7968973681a..98808e0e98f4 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/dynamicRouter.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/dynamicRouter.json
@@ -23,6 +23,9 @@
     "cacheSize": { "index": 7, "kind": "attribute", "displayName": "Cache 
Size", "group": "advanced", "label": "advanced", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "description": "Configures the cache size for 
ProducerCache which caches producers for reuse. The default cache size is 1000. 
Set to -1 to turn off caching." },
     "allowedSchemes": { "index": 8, "kind": "attribute", "displayName": 
"Allowed Schemes", "group": "security", "label": "advanced,security", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
an optional comma-separated allow-list of component schemes that the dynamic 
recipient may resolve to (e.g. http,https). When set, a dynamic endpoint whose 
scheme is not in the list is rejected. This is [...]
   },
+  "exchangeProperties": {
+    "CamelSlipEndpoint": { "index": 0, "kind": "exchangeProperty", 
"displayName": "Slip Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The uri of the endpoint the Routing Slip or Dynamic Router sent 
the message to last. It is not set before the first endpoint: a Dynamic Router 
expression that sends to its endpoints once can return them when this property 
is null, and null to stop otherwise." }
+  },
   "bodyTypes": {
     "eipOut": { "carriers": [ "unknown" ], "description": "What the last 
endpoint the router chose leaves" }
   }
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/onException.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/onException.json
index 3bfd430f595b..ea46fd8d7c47 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/onException.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/onException.json
@@ -25,8 +25,8 @@
     "continued": { "index": 10, "kind": "expression", "displayName": 
"Continued", "group": "advanced", "label": "advanced", "required": false, 
"type": "object", "javaType": 
"org.apache.camel.model.ExpressionSubElementDefinition", "oneOf": [ "constant", 
"datasonnet", "exchangeProperty", "groovy", "header", "hl7terser", "jactl", 
"java", "jq", "js", "jsonpath", "language", "method", "mvel", "python", 
"python3", "quickjs", "ref", "simple", "spel", "tokenize", "variable", "xpath", 
"xquery", " [...]
     "onRedeliveryRef": { "index": 11, "kind": "attribute", "displayName": "On 
Redelivery Ref", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets a reference to a 
processor that is invoked before each redelivery attempt. Can be used to change 
the exchange before it is redelivered." },
     "onExceptionOccurredRef": { "index": 12, "kind": "attribute", 
"displayName": "On Exception Occurred Ref", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Sets a reference to a processor that is invoked just after an 
exception occurred. Can be used to perform custom logging. Any exception thrown 
from this processor is ignored." },
-    "useOriginalMessage": { "index": 13, "kind": "attribute", "displayName": 
"Use Original Message", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, uses the original input message (body and headers) when the exchange 
is moved to the dead letter queue after all redelivery attempts have been 
exhausted. Cannot be used  [...]
-    "useOriginalBody": { "index": 14, "kind": "attribute", "displayName": "Use 
Original Body", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, uses the original input message body (but not headers) when the 
exchange is moved to the dead letter queue after all redelivery attempts have 
been exhausted. This allows enric [...]
+    "useOriginalMessage": { "index": 13, "kind": "attribute", "displayName": 
"Use Original Message", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, the steps of this onException get the original input message (body and 
headers) instead of the message as the route changed it before the failure, and 
so does a dead let [...]
+    "useOriginalBody": { "index": 14, "kind": "attribute", "displayName": "Use 
Original Body", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, the steps of this onException get the original input message body (but 
not headers) instead of the body as the route changed it before the failure, 
and so does a dead letter q [...]
     "outputs": { "index": 15, "kind": "element", "displayName": "Outputs", 
"group": "common", "required": true, "type": "array", "javaType": 
"java.util.List", "oneOf": [ "a2aSubTask", "aggregate", "bean", "cache", 
"choice", "circuitBreaker", "claimCheck", "convertBodyTo", "convertHeaderTo", 
"convertVariableTo", "delay", "doCatch", "doFinally", "doTry", "dynamicRouter", 
"enrich", "filter", "idempotentConsumer", "intercept", "interceptFrom", 
"interceptSendToEndpoint", "kamelet", "loadBalan [...]
   },
   "exchangeProperties": {
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/routingSlip.json
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/routingSlip.json
index 2f2d67a6859c..da239f947344 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/routingSlip.json
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/routingSlip.json
@@ -23,7 +23,7 @@
     "allowedSchemes": { "index": 8, "kind": "attribute", "displayName": 
"Allowed Schemes", "group": "security", "label": "advanced,security", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
an optional comma-separated allow-list of component schemes that the dynamic 
recipient may resolve to (e.g. http,https). When set, a dynamic endpoint whose 
scheme is not in the list is rejected. This is [...]
   },
   "exchangeProperties": {
-    "CamelSlipEndpoint": { "index": 0, "kind": "exchangeProperty", 
"displayName": "Slip Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The endpoint uri of this routing slip" },
+    "CamelSlipEndpoint": { "index": 0, "kind": "exchangeProperty", 
"displayName": "Slip Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The uri of the endpoint the Routing Slip or Dynamic Router sent 
the message to last. It is not set before the first endpoint: a Dynamic Router 
expression that sends to its endpoints once can return them when this property 
is null, and null to stop otherwise." },
     "CamelToEndpoint": { "index": 1, "kind": "exchangeProperty", 
"displayName": "To Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Endpoint URI where this Exchange is being sent to" }
   },
   "bodyTypes": {
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
index fa5a0ea9706a..882b528bc4df 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
@@ -11574,8 +11574,9 @@ Any exception thrown from this processor is ignored.
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
-If enabled, uses the original input message (body and headers) when the 
exchange is moved to the dead letter queue after
-all redelivery attempts have been exhausted. Cannot be used together with 
useOriginalBody. Default value: false
+If enabled, the steps of this onException get the original input message (body 
and headers) instead of the message as
+the route changed it before the failure, and so does a dead letter queue. 
Inside a Splitter, the original message is the
+split message, such as the line being processed. Cannot be used together with 
useOriginalBody. Default value: false
 ]]>
             </xs:documentation>
           </xs:annotation>
@@ -11584,9 +11585,10 @@ all redelivery attempts have been exhausted. Cannot be 
used together with useOri
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
-If enabled, uses the original input message body (but not headers) when the 
exchange is moved to the dead letter queue
-after all redelivery attempts have been exhausted. This allows enriching the 
message with custom headers while keeping
-the original body. Cannot be used together with useOriginalMessage. Default 
value: false
+If enabled, the steps of this onException get the original input message body 
(but not headers) instead of the body as
+the route changed it before the failure, and so does a dead letter queue. 
Inside a Splitter, the original body is the
+split message, such as the line being processed. This allows enriching the 
message with custom headers while keeping the
+original body. Cannot be used together with useOriginalMessage. Default value: 
false
 ]]>
             </xs:documentation>
           </xs:annotation>
diff --git 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
index 96cfb438e906..7f217e35062c 100644
--- 
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
+++ 
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
@@ -10692,8 +10692,9 @@ Any exception thrown from this processor is ignored.
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
-If enabled, uses the original input message (body and headers) when the 
exchange is moved to the dead letter queue after
-all redelivery attempts have been exhausted. Cannot be used together with 
useOriginalBody. Default value: false
+If enabled, the steps of this onException get the original input message (body 
and headers) instead of the message as
+the route changed it before the failure, and so does a dead letter queue. 
Inside a Splitter, the original message is the
+split message, such as the line being processed. Cannot be used together with 
useOriginalBody. Default value: false
 ]]>
             </xs:documentation>
           </xs:annotation>
@@ -10702,9 +10703,10 @@ all redelivery attempts have been exhausted. Cannot be 
used together with useOri
           <xs:annotation>
             <xs:documentation xml:lang="en">
 <![CDATA[
-If enabled, uses the original input message body (but not headers) when the 
exchange is moved to the dead letter queue
-after all redelivery attempts have been exhausted. This allows enriching the 
message with custom headers while keeping
-the original body. Cannot be used together with useOriginalMessage. Default 
value: false
+If enabled, the steps of this onException get the original input message body 
(but not headers) instead of the body as
+the route changed it before the failure, and so does a dead letter queue. 
Inside a Splitter, the original body is the
+split message, such as the line being processed. This allows enriching the 
message with custom headers while keeping the
+original body. Cannot be used together with useOriginalMessage. Default value: 
false
 ]]>
             </xs:documentation>
           </xs:annotation>
diff --git a/core/camel-api/src/main/java/org/apache/camel/Exchange.java 
b/core/camel-api/src/main/java/org/apache/camel/Exchange.java
index c23d6510aa31..f0e70dd7a278 100644
--- a/core/camel-api/src/main/java/org/apache/camel/Exchange.java
+++ b/core/camel-api/src/main/java/org/apache/camel/Exchange.java
@@ -291,7 +291,11 @@ public interface Exchange extends VariableAware {
     String SKIP_GZIP_ENCODING = "CamelSkipGzipEncoding";
     String SKIP_OVER = "CamelSkipOver";
     String SKIP_WWW_FORM_URLENCODED = "CamelSkipWwwFormUrlEncoding";
-    @Metadata(label = "routingSlip", description = "The endpoint uri of this 
routing slip", javaType = "String")
+    @Metadata(label = "routingSlip,dynamicRouter",
+              description = "The uri of the endpoint the Routing Slip or 
Dynamic Router sent the message to last. It is"
+                            + " not set before the first endpoint: a Dynamic 
Router expression that sends to its"
+                            + " endpoints once can return them when this 
property is null, and null to stop otherwise.",
+              javaType = "String")
     String SLIP_ENDPOINT = "CamelSlipEndpoint";
     String SLIP_PRODUCER = "CamelSlipProducer";
     @Metadata(label = "split",
diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc
index 0fa561d8e36f..61b07902efc1 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc
@@ -381,6 +381,74 @@ The Splitter will by default return the original input 
message.
 
 You can control this by using a custom `AggregationStrategy`.
 
+=== Doing something after the last split message
+
+The split messages are copies of the input message, and the Splitter returns 
the original input message when it is
+complete. So a header, property or variable that you set while processing a 
split message is gone after the split.
+
+To do something once all the messages are split, such as logging how many 
lines a file had, use a
+xref:filter-eip.adoc[Filter] inside the split that matches only the last split 
message.
+The exchange property `CamelSplitComplete` is `true` for the last split 
message, and `CamelSplitSize` holds the total number of split messages.
+This also works in streaming mode, where `CamelSplitSize` is only set on the 
last split message.
+
+[tabs]
+====
+Java::
++
+[source,java]
+----
+from("file:inbox")
+    .split(body().tokenize("\n")).streaming()
+        .to("direct:line")
+        .filter(exchangeProperty(Exchange.SPLIT_COMPLETE))
+            .log("File ${file:name} done: ${exchangeProperty.CamelSplitSize} 
lines")
+        .end()
+    .end();
+----
+
+XML::
++
+[source,xml]
+----
+<route>
+    <from uri="file:inbox"/>
+    <split streaming="true">
+        <tokenize token="\n"/>
+        <to uri="direct:line"/>
+        <filter>
+            <simple>${exchangeProperty.CamelSplitComplete}</simple>
+            <log message="File ${file:name} done: 
${exchangeProperty.CamelSplitSize} lines"/>
+        </filter>
+    </split>
+</route>
+----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: file:inbox
+      steps:
+        - split:
+            expression:
+              tokenize:
+                token: "\n"
+            streaming: true
+            steps:
+              - to:
+                  uri: direct:line
+              - filter:
+                  expression:
+                    simple:
+                      expression: "${exchangeProperty.CamelSplitComplete}"
+                  steps:
+                    - log:
+                        message: "File ${file:name} done: 
${exchangeProperty.CamelSplitSize} lines"
+----
+====
+
 === Aggregating
 
 The `AggregationStrategy` is used for aggregating all the split exchanges 
together
diff --git 
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/dynamicRouter.json
 
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/dynamicRouter.json
index f7968973681a..98808e0e98f4 100644
--- 
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/dynamicRouter.json
+++ 
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/dynamicRouter.json
@@ -23,6 +23,9 @@
     "cacheSize": { "index": 7, "kind": "attribute", "displayName": "Cache 
Size", "group": "advanced", "label": "advanced", "required": false, "type": 
"integer", "javaType": "java.lang.Integer", "deprecated": false, "autowired": 
false, "secret": false, "description": "Configures the cache size for 
ProducerCache which caches producers for reuse. The default cache size is 1000. 
Set to -1 to turn off caching." },
     "allowedSchemes": { "index": 8, "kind": "attribute", "displayName": 
"Allowed Schemes", "group": "security", "label": "advanced,security", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
an optional comma-separated allow-list of component schemes that the dynamic 
recipient may resolve to (e.g. http,https). When set, a dynamic endpoint whose 
scheme is not in the list is rejected. This is [...]
   },
+  "exchangeProperties": {
+    "CamelSlipEndpoint": { "index": 0, "kind": "exchangeProperty", 
"displayName": "Slip Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The uri of the endpoint the Routing Slip or Dynamic Router sent 
the message to last. It is not set before the first endpoint: a Dynamic Router 
expression that sends to its endpoints once can return them when this property 
is null, and null to stop otherwise." }
+  },
   "bodyTypes": {
     "eipOut": { "carriers": [ "unknown" ], "description": "What the last 
endpoint the router chose leaves" }
   }
diff --git 
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/onException.json
 
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/onException.json
index 3bfd430f595b..ea46fd8d7c47 100644
--- 
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/onException.json
+++ 
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/onException.json
@@ -25,8 +25,8 @@
     "continued": { "index": 10, "kind": "expression", "displayName": 
"Continued", "group": "advanced", "label": "advanced", "required": false, 
"type": "object", "javaType": 
"org.apache.camel.model.ExpressionSubElementDefinition", "oneOf": [ "constant", 
"datasonnet", "exchangeProperty", "groovy", "header", "hl7terser", "jactl", 
"java", "jq", "js", "jsonpath", "language", "method", "mvel", "python", 
"python3", "quickjs", "ref", "simple", "spel", "tokenize", "variable", "xpath", 
"xquery", " [...]
     "onRedeliveryRef": { "index": 11, "kind": "attribute", "displayName": "On 
Redelivery Ref", "group": "advanced", "label": "advanced", "required": false, 
"type": "string", "javaType": "java.lang.String", "deprecated": false, 
"autowired": false, "secret": false, "description": "Sets a reference to a 
processor that is invoked before each redelivery attempt. Can be used to change 
the exchange before it is redelivered." },
     "onExceptionOccurredRef": { "index": 12, "kind": "attribute", 
"displayName": "On Exception Occurred Ref", "group": "advanced", "label": 
"advanced", "required": false, "type": "string", "javaType": 
"java.lang.String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Sets a reference to a processor that is invoked just after an 
exception occurred. Can be used to perform custom logging. Any exception thrown 
from this processor is ignored." },
-    "useOriginalMessage": { "index": 13, "kind": "attribute", "displayName": 
"Use Original Message", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, uses the original input message (body and headers) when the exchange 
is moved to the dead letter queue after all redelivery attempts have been 
exhausted. Cannot be used  [...]
-    "useOriginalBody": { "index": 14, "kind": "attribute", "displayName": "Use 
Original Body", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, uses the original input message body (but not headers) when the 
exchange is moved to the dead letter queue after all redelivery attempts have 
been exhausted. This allows enric [...]
+    "useOriginalMessage": { "index": 13, "kind": "attribute", "displayName": 
"Use Original Message", "group": "advanced", "label": "advanced", "required": 
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, the steps of this onException get the original input message (body and 
headers) instead of the message as the route changed it before the failure, and 
so does a dead let [...]
+    "useOriginalBody": { "index": 14, "kind": "attribute", "displayName": "Use 
Original Body", "group": "advanced", "label": "advanced", "required": false, 
"type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, 
"autowired": false, "secret": false, "defaultValue": false, "description": "If 
enabled, the steps of this onException get the original input message body (but 
not headers) instead of the body as the route changed it before the failure, 
and so does a dead letter q [...]
     "outputs": { "index": 15, "kind": "element", "displayName": "Outputs", 
"group": "common", "required": true, "type": "array", "javaType": 
"java.util.List", "oneOf": [ "a2aSubTask", "aggregate", "bean", "cache", 
"choice", "circuitBreaker", "claimCheck", "convertBodyTo", "convertHeaderTo", 
"convertVariableTo", "delay", "doCatch", "doFinally", "doTry", "dynamicRouter", 
"enrich", "filter", "idempotentConsumer", "intercept", "interceptFrom", 
"interceptSendToEndpoint", "kamelet", "loadBalan [...]
   },
   "exchangeProperties": {
diff --git 
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/routingSlip.json
 
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/routingSlip.json
index 2f2d67a6859c..da239f947344 100644
--- 
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/routingSlip.json
+++ 
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/routingSlip.json
@@ -23,7 +23,7 @@
     "allowedSchemes": { "index": 8, "kind": "attribute", "displayName": 
"Allowed Schemes", "group": "security", "label": "advanced,security", 
"required": false, "type": "string", "javaType": "java.lang.String", 
"deprecated": false, "autowired": false, "secret": false, "description": "Sets 
an optional comma-separated allow-list of component schemes that the dynamic 
recipient may resolve to (e.g. http,https). When set, a dynamic endpoint whose 
scheme is not in the list is rejected. This is [...]
   },
   "exchangeProperties": {
-    "CamelSlipEndpoint": { "index": 0, "kind": "exchangeProperty", 
"displayName": "Slip Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The endpoint uri of this routing slip" },
+    "CamelSlipEndpoint": { "index": 0, "kind": "exchangeProperty", 
"displayName": "Slip Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "The uri of the endpoint the Routing Slip or Dynamic Router sent 
the message to last. It is not set before the first endpoint: a Dynamic Router 
expression that sends to its endpoints once can return them when this property 
is null, and null to stop otherwise." },
     "CamelToEndpoint": { "index": 1, "kind": "exchangeProperty", 
"displayName": "To Endpoint", "label": "producer", "required": false, 
"javaType": "String", "deprecated": false, "autowired": false, "secret": false, 
"description": "Endpoint URI where this Exchange is being sent to" }
   },
   "bodyTypes": {
diff --git 
a/core/camel-core-model/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
 
b/core/camel-core-model/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
index fb7f4b0349fa..a8aac393980b 100644
--- 
a/core/camel-core-model/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
+++ 
b/core/camel-core-model/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
@@ -107,16 +107,18 @@ public class OnExceptionDefinition extends 
OutputDefinition<OnExceptionDefinitio
     private String onExceptionOccurredRef;
     @XmlAttribute(name = "useOriginalMessage")
     @Metadata(label = "advanced", javaType = "java.lang.Boolean",
-              description = "If enabled, uses the original input message (body 
and headers) when the exchange"
-                            + " is moved to the dead letter queue after all 
redelivery attempts have been exhausted."
-                            + " Cannot be used together with useOriginalBody.")
+              description = "If enabled, the steps of this onException get the 
original input message (body and"
+                            + " headers) instead of the message as the route 
changed it before the failure, and so"
+                            + " does a dead letter queue. Inside a Splitter, 
the original message is the split message,"
+                            + " such as the line being processed. Cannot be 
used together with useOriginalBody.")
     private String useOriginalMessage;
     @XmlAttribute(name = "useOriginalBody")
     @Metadata(label = "advanced", javaType = "java.lang.Boolean",
-              description = "If enabled, uses the original input message body 
(but not headers) when the exchange"
-                            + " is moved to the dead letter queue after all 
redelivery attempts have been exhausted."
-                            + " This allows enriching the message with custom 
headers while keeping the original body."
-                            + " Cannot be used together with 
useOriginalMessage.")
+              description = "If enabled, the steps of this onException get the 
original input message body (but"
+                            + " not headers) instead of the body as the route 
changed it before the failure, and so does"
+                            + " a dead letter queue. Inside a Splitter, the 
original body is the split message, such as"
+                            + " the line being processed. This allows 
enriching the message with custom headers while"
+                            + " keeping the original body. Cannot be used 
together with useOriginalMessage.")
     private String useOriginalBody;
 
     public OnExceptionDefinition() {
diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/generated/resources/org/apache/camel/dsl/jbang/core/commands/ai/eip-samples.json
 
b/dsl/camel-jbang/camel-jbang-core/src/generated/resources/org/apache/camel/dsl/jbang/core/commands/ai/eip-samples.json
index 0b137eda2afc..3988d83f7851 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/generated/resources/org/apache/camel/dsl/jbang/core/commands/ai/eip-samples.json
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/generated/resources/org/apache/camel/dsl/jbang/core/commands/ai/eip-samples.json
@@ -1510,6 +1510,10 @@
       "source": "split-eip.adoc",
       "yaml": "- route:\n    from:\n      uri: direct:a\n      steps:\n        
- split:\n            parallelProcessing: true\n            expression:\n       
       simple:\n                expression: \"${body}\"\n            steps:\n   
           - to:\n                  uri: direct:b\n              - to:\n        
          uri: direct:c\n              - to:\n                  uri: direct:d\n 
       - to:\n            uri: mock:result\n"
     },
+    {
+      "source": "split-eip.adoc",
+      "yaml": "- route:\n    from:\n      uri: file:inbox\n      steps:\n      
  - split:\n            expression:\n              tokenize:\n                
token: \"\\n\"\n            streaming: true\n            steps:\n              
- to:\n                  uri: direct:line\n              - filter:\n            
      expression:\n                    simple:\n                      
expression: \"${exchangeProperty.CamelSplitComplete}\"\n                  
steps:\n                    - lo [...]
+    },
     {
       "source": "split-eip.adoc",
       "yaml": "- route:\n    from:\n      uri: direct:a\n      steps:\n        
- split:\n            aggregationStrategy: 
\"#class:com.foo.MyAggregationStrategy\"\n            expression:\n             
 simple:\n                expression: \"${body}\"\n            steps:\n         
     - to:\n                  uri: direct:b\n              - to:\n              
    uri: direct:c\n              - to:\n                  uri: direct:d\n       
 - to:\n            uri: mock:result\n"
diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
index 21ed0616ec85..3f95fef21404 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
@@ -10653,8 +10653,8 @@ public final class ModelDeserializers extends 
YamlDeserializerSupport {
                     @YamlProperty(name = "redeliveryPolicyRef", type = 
"string", description = "Sets a reference to a redelivery policy to lookup in 
the registry to be used.", displayName = "Redelivery Policy Ref"),
                     @YamlProperty(name = "retryWhile", type = 
"object:org.apache.camel.model.ExpressionSubElementDefinition", description = 
"Sets a predicate to control whether redelivery should continue. Redelivery 
continues as long as the predicate evaluates to true.", displayName = "Retry 
While"),
                     @YamlProperty(name = "steps", type = 
"array:org.apache.camel.model.ProcessorDefinition"),
-                    @YamlProperty(name = "useOriginalBody", type = "boolean", 
defaultValue = "false", description = "If enabled, uses the original input 
message body (but not headers) when the exchange is moved to the dead letter 
queue after all redelivery attempts have been exhausted. This allows enriching 
the message with custom headers while keeping the original body. Cannot be used 
together with useOriginalMessage.", displayName = "Use Original Body"),
-                    @YamlProperty(name = "useOriginalMessage", type = 
"boolean", defaultValue = "false", description = "If enabled, uses the original 
input message (body and headers) when the exchange is moved to the dead letter 
queue after all redelivery attempts have been exhausted. Cannot be used 
together with useOriginalBody.", displayName = "Use Original Message")
+                    @YamlProperty(name = "useOriginalBody", type = "boolean", 
defaultValue = "false", description = "If enabled, the steps of this 
onException get the original input message body (but not headers) instead of 
the body as the route changed it before the failure, and so does a dead letter 
queue. Inside a Splitter, the original body is the split message, such as the 
line being processed. This allows enriching the message with custom headers 
while keeping the original body. Ca [...]
+                    @YamlProperty(name = "useOriginalMessage", type = 
"boolean", defaultValue = "false", description = "If enabled, the steps of this 
onException get the original input message (body and headers) instead of the 
message as the route changed it before the failure, and so does a dead letter 
queue. Inside a Splitter, the original message is the split message, such as 
the line being processed. Cannot be used together with useOriginalBody.", 
displayName = "Use Original Message")
             }
     )
     public static class OnExceptionDefinitionDeserializer extends 
YamlDeserializerBase<OnExceptionDefinition> {
diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-canonical.json
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-canonical.json
index 00fa023fa0d5..91379edfc452 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-canonical.json
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-canonical.json
@@ -2582,13 +2582,13 @@
           "useOriginalBody" : {
             "type" : "boolean",
             "title" : "Use Original Body",
-            "description" : "If enabled, uses the original input message body 
(but not headers) when the exchange is moved to the dead letter queue after all 
redelivery attempts have been exhausted. This allows enriching the message with 
custom headers while keeping the original body. Cannot be used together with 
useOriginalMessage.",
+            "description" : "If enabled, the steps of this onException get the 
original input message body (but not headers) instead of the body as the route 
changed it before the failure, and so does a dead letter queue. Inside a 
Splitter, the original body is the split message, such as the line being 
processed. This allows enriching the message with custom headers while keeping 
the original body. Cannot be used together with useOriginalMessage.",
             "default" : false
           },
           "useOriginalMessage" : {
             "type" : "boolean",
             "title" : "Use Original Message",
-            "description" : "If enabled, uses the original input message (body 
and headers) when the exchange is moved to the dead letter queue after all 
redelivery attempts have been exhausted. Cannot be used together with 
useOriginalBody.",
+            "description" : "If enabled, the steps of this onException get the 
original input message (body and headers) instead of the message as the route 
changed it before the failure, and so does a dead letter queue. Inside a 
Splitter, the original message is the split message, such as the line being 
processed. Cannot be used together with useOriginalBody.",
             "default" : false
           }
         }
diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-model.json
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-model.json
index 7a23b78f91a2..0280e33818fd 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-model.json
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl-model.json
@@ -4513,7 +4513,7 @@
       }, {
         "name" : "useOriginalMessage",
         "type" : "boolean",
-        "description" : "If enabled, uses the original input message (body and 
headers) when the exchange is moved to the dead letter queue after all 
redelivery attempts have been exhausted. Cannot be used together with 
useOriginalBody.",
+        "description" : "If enabled, the steps of this onException get the 
original input message (body and headers) instead of the message as the route 
changed it before the failure, and so does a dead letter queue. Inside a 
Splitter, the original message is the split message, such as the line being 
processed. Cannot be used together with useOriginalBody.",
         "title" : "Use Original Message",
         "default" : "false",
         "displayName" : "Use Original Message",
@@ -4524,7 +4524,7 @@
       }, {
         "name" : "useOriginalBody",
         "type" : "boolean",
-        "description" : "If enabled, uses the original input message body (but 
not headers) when the exchange is moved to the dead letter queue after all 
redelivery attempts have been exhausted. This allows enriching the message with 
custom headers while keeping the original body. Cannot be used together with 
useOriginalMessage.",
+        "description" : "If enabled, the steps of this onException get the 
original input message body (but not headers) instead of the body as the route 
changed it before the failure, and so does a dead letter queue. Inside a 
Splitter, the original body is the split message, such as the line being 
processed. This allows enriching the message with custom headers while keeping 
the original body. Cannot be used together with useOriginalMessage.",
         "title" : "Use Original Body",
         "default" : "false",
         "displayName" : "Use Original Body",
diff --git 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
index e8c5f2a3ea5a..68bdf29d4638 100644
--- 
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
+++ 
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
@@ -3579,13 +3579,13 @@
           "useOriginalBody" : {
             "type" : "boolean",
             "title" : "Use Original Body",
-            "description" : "If enabled, uses the original input message body 
(but not headers) when the exchange is moved to the dead letter queue after all 
redelivery attempts have been exhausted. This allows enriching the message with 
custom headers while keeping the original body. Cannot be used together with 
useOriginalMessage.",
+            "description" : "If enabled, the steps of this onException get the 
original input message body (but not headers) instead of the body as the route 
changed it before the failure, and so does a dead letter queue. Inside a 
Splitter, the original body is the split message, such as the line being 
processed. This allows enriching the message with custom headers while keeping 
the original body. Cannot be used together with useOriginalMessage.",
             "default" : false
           },
           "useOriginalMessage" : {
             "type" : "boolean",
             "title" : "Use Original Message",
-            "description" : "If enabled, uses the original input message (body 
and headers) when the exchange is moved to the dead letter queue after all 
redelivery attempts have been exhausted. Cannot be used together with 
useOriginalBody.",
+            "description" : "If enabled, the steps of this onException get the 
original input message (body and headers) instead of the message as the route 
changed it before the failure, and so does a dead letter queue. Inside a 
Splitter, the original message is the split message, such as the line being 
processed. Cannot be used together with useOriginalBody.",
             "default" : false
           }
         }

Reply via email to