This is an automated email from the ASF dual-hosted git repository.
jsinovassinnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/master by this push:
new 9022fc38f UNOMI-847: update documentation to provide a working groovy
action (#700)
9022fc38f is described below
commit 9022fc38f596c0f096e47cb645969ffdf22bac1f
Author: jsinovassin <[email protected]>
AuthorDate: Mon Oct 14 17:05:58 2024 +0100
UNOMI-847: update documentation to provide a working groovy action (#700)
* UNOMI-847: update documentation to provide a working groovy action
* remove useless parameter
---
.github/workflows/codeql-analysis-java.yml | 1 -
manual/src/main/asciidoc/configuration.adoc | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/codeql-analysis-java.yml
b/.github/workflows/codeql-analysis-java.yml
index 61eff2659..546e91b17 100644
--- a/.github/workflows/codeql-analysis-java.yml
+++ b/.github/workflows/codeql-analysis-java.yml
@@ -43,7 +43,6 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
- cache: maven
- run: mvn -U -ntp -e clean install -DskipTests
- name: Perform CodeQL Analysis
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"))