This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch once
in repository https://gitbox.apache.org/repos/asf/camel.git

commit f516c4a7a33734ea5f6fa865361b36d7268f3178
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Dec 18 11:32:47 2025 +0100

    CAMEL-22431: camel-once - A component for development to trigger only once
---
 .../camel-once/src/main/docs/once-component.adoc      | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/components/camel-once/src/main/docs/once-component.adoc 
b/components/camel-once/src/main/docs/once-component.adoc
index 0d78e2662f70..e3345fea84d5 100644
--- a/components/camel-once/src/main/docs/once-component.adoc
+++ b/components/camel-once/src/main/docs/once-component.adoc
@@ -75,6 +75,25 @@ from("once:tick?body=world&header.foo=abc&header.bar=123")
 
 You can do the same for variables with `variable.<key>`.
 
+And in YAML DSL you can use YAML map's directly as shown below:
+
+[source,yaml]
+----
+- route:
+    from:
+      uri: once
+      parameters:
+        name: hello
+        body: Hello World
+        headers:
+          foo: foolish
+          bar: 456
+      steps:
+        - to: mock:result
+----
+
+IMPORTANT: This requires that the `uri` does not have any configuration so it 
must be `uri: once` and not `uri: once:hello`.
+
 === Using custom languages
 
 You can use the Camel languages such as simple, or groovy when specifying 
body, headers, and variables.

Reply via email to