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-kamelets-examples.git
The following commit(s) were added to refs/heads/main by this push: new 7177668 Add route template example 7177668 is described below commit 7177668cf9318192ce220a8672778370cac0df8a Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Nov 27 09:12:04 2024 +0100 Add route template example --- jbang/route-template/mytemplate.camel.yaml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/jbang/route-template/mytemplate.camel.yaml b/jbang/route-template/mytemplate.camel.yaml index ddef7ad..fc798fc 100644 --- a/jbang/route-template/mytemplate.camel.yaml +++ b/jbang/route-template/mytemplate.camel.yaml @@ -16,18 +16,24 @@ # - routeTemplate: - id: "myTemplate" + id: myTemplate parameters: - name: "drink" defaultValue: "Bloody Mary" - name: "period" defaultValue: 5000 - from: - uri: "timer:tick" - parameters: - period: "{{period}}" - steps: - - setBody: - constant: "You ordered a {{drink}}" - - log: - message: "${body}" + route: + id: route-9e7f + nodePrefixId: route-e9d + from: + id: from-2cc0 + uri: "timer:tick" + parameters: + period: "{{period}}" + steps: + - setBody: + id: setBody-e9c1 + constant: "You ordered a {{drink}}" + - log: + id: log-2f4a + message: "${body}"