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-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 7529bafc Fix example
7529bafc is described below

commit 7529bafc0c0dcb813b21dda926a95ba310b6951a
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Mon Oct 14 15:41:02 2024 +0200

    Fix example
---
 .../src/main/resources/camel/demo.camel.yaml       | 40 +++++++++++-----------
 1 file changed, 20 insertions(+), 20 deletions(-)

diff --git a/main-micrometer/src/main/resources/camel/demo.camel.yaml 
b/main-micrometer/src/main/resources/camel/demo.camel.yaml
index 74101b15..83bfac24 100644
--- a/main-micrometer/src/main/resources/camel/demo.camel.yaml
+++ b/main-micrometer/src/main/resources/camel/demo.camel.yaml
@@ -1,9 +1,6 @@
 - route:
-    nodePrefixId: route-e2a
-    id: route-8847
     from:
       uri: timer
-      id: from-0922
       parameters:
         timerName: timer1
         delay: '1000'
@@ -11,30 +8,33 @@
       steps:
         - setBody:
             expression:
-              simple:
-                expression: Hello World
-                id: simple-3fc3
-            id: setBody-b8e4
+              constant:
+                expression: Hello
         - to:
             uri: direct
-            id: to-280f
             parameters:
-              name: direct1
+              name: echo
+        - log:
+            message: ${body}
 - route:
-    nodePrefixId: route-6ce
-    id: route-a9b6
     from:
       uri: direct
-      id: from-a1fa
       parameters:
-        name: direct1
+        name: echo
       steps:
         - setBody:
-            constant: 'HELLO'
-            id: log-dcfc
+            simple: '${body}${body}'
+- route:
+    from:
+      uri: direct
+      parameters:
+        name: bye
+      steps:
+        - setBody:
+            constant: 'BYE WORLD'
+        - log:
+            message: ${body}
 - rest:
-    id: rest-8cd4
-    post:
-      - path: /rest-api
-        to: direct:direct1
-        id: post-032f
+    get:
+      - path: /bye
+        to: direct:bye

Reply via email to