You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by js...@apache.org on 2024/10/10 08:29:40 UTC

(unomi) branch UNOMI-847-update-doc created (now c87b2d7d2)

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

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


      at c87b2d7d2 UNOMI-847: update documentation to provide a working groovy action

This branch includes the following new commits:

     new c87b2d7d2 UNOMI-847: update documentation to provide a working groovy action

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(unomi) 01/01: UNOMI-847: update documentation to provide a working groovy action

Posted by js...@apache.org.
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 c87b2d7d29a8a94cf8678815eae5cdba622f6019
Author: jsinovassin <js...@jahia.com>
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..f8bf2acfd 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. To target the action you are creating, use the file name of the groovy 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"))