You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2023/09/22 13:27:44 UTC
[camel-k-runtime] branch main updated: fix(examples): Fix yaml data route
This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
The following commit(s) were added to refs/heads/main by this push:
new 119ce3d5 fix(examples): Fix yaml data route
119ce3d5 is described below
commit 119ce3d5b5e41ed7e5432a271472701005dd005d
Author: Gaelle Fournier <ga...@gmail.com>
AuthorDate: Fri Sep 22 15:23:15 2023 +0200
fix(examples): Fix yaml data route
---
examples/yaml/data/routes.yaml | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
diff --git a/examples/yaml/data/routes.yaml b/examples/yaml/data/routes.yaml
index 22d7e008..3528c151 100644
--- a/examples/yaml/data/routes.yaml
+++ b/examples/yaml/data/routes.yaml
@@ -20,22 +20,20 @@
group: "routes"
from:
uri: "platform-http:/hello"
- steps:
- - convert-body-to:
- type: "java.lang.String"
- - to:
- uri: "log:info"
+ steps:
+ - convert-body-to:
+ type: "java.lang.String"
+ - to:
+ uri: "log:info"
- route:
id: "flow-2"
group: "routes"
from:
- uri: "timer:tick"
- properties:
- period: "5000"
- steps:
- - set-body:
- simple: "${exchangeProperty.CamelTimerName} -> ${exchangeProperty.CamelTimerCounter}"
- - to:
- uri: "log:tick"
- - log:
- message: "{{message}}"
+ uri: "timer:tick?period=5s"
+ steps:
+ - set-body:
+ simple: "${exchangeProperty.CamelTimerName} -> ${exchangeProperty.CamelTimerCounter}"
+ - to:
+ uri: "log:tick"
+ - log:
+ message: "test-app"