You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/11/28 13:49:29 UTC
[camel-kamelets] 01/02: Added repeatCount parameter to timer source Kamelet
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch timer-source
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e5d1ebf589c9b86a33fac2da104e435087e320f7
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 28 14:43:05 2022 +0100
Added repeatCount parameter to timer source Kamelet
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
kamelets/timer-source.kamelet.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/kamelets/timer-source.kamelet.yaml b/kamelets/timer-source.kamelet.yaml
index f0414c18..f97b3f05 100644
--- a/kamelets/timer-source.kamelet.yaml
+++ b/kamelets/timer-source.kamelet.yaml
@@ -51,6 +51,10 @@ spec:
description: The content type of the generated message.
type: string
default: text/plain
+ repeatCount:
+ title: Repeat Count
+ description: Specifies a maximum limit of number of fires
+ type: integer
dependencies:
- "camel:core"
- "camel:timer"
@@ -60,6 +64,7 @@ spec:
uri: timer:tick
parameters:
period: "{{period}}"
+ repeatCount: "{{?repeatCount}}"
steps:
- set-body:
constant: "{{message}}"