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

jsinovassinnaik pushed a commit to branch UNOMI-847-update-doc
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit ad522f375fa9688b90d835f9f6282ed04a417e87
Author: jsinovassin <[email protected]>
AuthorDate: Thu Oct 10 09:29:27 2024 +0100

    UNOMI-847: update documentation to provide a working groovy action
---
 manual/src/main/asciidoc/configuration.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/manual/src/main/asciidoc/configuration.adoc 
b/manual/src/main/asciidoc/configuration.adoc
index 5f9b7f677..b2d141ed3 100644
--- a/manual/src/main/asciidoc/configuration.adoc
+++ b/manual/src/main/asciidoc/configuration.adoc
@@ -401,7 +401,7 @@ Placed right before the function, the “@Action” annotation 
contains a set of
 |actionExecutor
 |String
 |YES
-|Action executor contains the name of the script to call for the action type 
and must be prefixed with “*groovy:*”. The prefix indicates to Unomi which 
dispatcher to use when processing the action.
+|Action executor contains the name of the script to call for the action type 
and must be prefixed with “*groovy:*”. The prefix indicates to Unomi which 
dispatcher to use when processing the action. The name must be the file name of 
the groovy file containing the action without the extension 
(*groovy:<filename>*).
 
 |name
 |String
@@ -464,7 +464,7 @@ The first step consists in creating the groovy script on 
your filesystem, start
 [source,groovy]
 ----
 @Action(id = "helloWorldGroovyAction",
-        actionExecutor = "groovy:helloWorldAction",
+        actionExecutor = "groovy:helloWorldGroovyAction",
         parameters = [@Parameter(id = "location", type = "string", multivalued 
= false)])
 def execute() {
     logger.info("Hello {}", action.getParameterValues().get("location"))

Reply via email to