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


The following commit(s) were added to refs/heads/main by this push:
     new d451e466c76 Update setBody-eip.adoc (#18539)
d451e466c76 is described below

commit d451e466c76f45b27111d94622a3bd338bb4c202
Author: Raymond Meester <[email protected]>
AuthorDate: Mon Jul 7 07:15:53 2025 +0200

    Update setBody-eip.adoc (#18539)
    
    Add YAML example
---
 .../src/main/docs/modules/eips/pages/setBody-eip.adoc    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git 
a/core/camel-core-engine/src/main/docs/modules/eips/pages/setBody-eip.adoc 
b/core/camel-core-engine/src/main/docs/modules/eips/pages/setBody-eip.adoc
index ff91536427b..6ccec590b10 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/setBody-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/setBody-eip.adoc
@@ -67,6 +67,22 @@ XML::
     <to uri="log:hello"/>
 </route>
 ----
+
+YAML::
++
+[source,yaml]
+----
+- route:
+    from:
+      uri: direct:cheese
+      steps:
+        - setBody:
+            simple:
+              expression: Hello ${body}
+        - to:
+            uri: log:hello
+----
+
 ====
 
 == What is the difference between Transform and Set Body?

Reply via email to