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 <[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..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"))
