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

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 57b20175da66f23dc217e11d1b3694ba90cd0f57
Author: Nicola Ferraro <ni.ferr...@gmail.com>
AuthorDate: Mon Dec 16 12:59:31 2019 +0100

    Related to #1143: change groovy example
---
 docs/modules/ROOT/pages/languages/groovy.adoc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/pages/languages/groovy.adoc 
b/docs/modules/ROOT/pages/languages/groovy.adoc
index fa4ac10..b8e6c49 100644
--- a/docs/modules/ROOT/pages/languages/groovy.adoc
+++ b/docs/modules/ROOT/pages/languages/groovy.adoc
@@ -5,10 +5,16 @@ An integration written in Groovy looks very similar to a Java 
one except it can
 [source,groovy]
 ----
 from('timer:tick')
-    .process { it.in.body = 'Hello Camel K!' }
+    .process({ it.in.body = 'Hello Camel K!' } as Processor)
     .to('log:info')
 ----
 
+You can run it with the standard command:
+
+```
+kamel run example.groovy
+```
+
 == Configuring the Application
 
 Camel K extends the Camel Java DSL making it easier to configure Camel's 
behavior using the top level _camel_ block

Reply via email to