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


The following commit(s) were added to refs/heads/main by this push:
     new a886fcb  Fixed yaml dsl
a886fcb is described below

commit a886fcb96ccfc230511a90e9eb7f3067d4a9b3be
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Jan 2 10:15:22 2022 +0100

    Fixed yaml dsl
---
 .../src/main/resources/myroutes/my-yaml-route.yaml | 25 +++++++++++-----------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git 
a/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml 
b/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
index 8816956..2d28a3a 100644
--- a/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
+++ b/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
@@ -18,15 +18,16 @@
 - route:
     # refer to the route configuration by the id to use for this route
     route-configuration-id: "yamlError"
-    from: "timer:yaml?period=3s"
-    steps:
-      - set-body:
-          simple: "Timer fired ${header.CamelTimerCounter} times"
-      - to:
-          uri: "log:yaml"
-          parameters:
-            show-body-type: false
-            show-exchange-pattern: false
-      - throw-exception:
-          exception-type: "java.lang.IllegalArgumentException"
-          message: "Error from yaml"
+    from:
+      uri: "timer:yaml?period=3s"
+      steps:
+        - set-body:
+            simple: "Timer fired ${header.CamelTimerCounter} times"
+        - to:
+            uri: "log:yaml"
+            parameters:
+              show-body-type: false
+              show-exchange-pattern: false
+        - throw-exception:
+            exception-type: "java.lang.IllegalArgumentException"
+            message: "Error from yaml"

Reply via email to