Skip to content

Commit

Permalink
UNOMI-847: update documentation to provide a working groovy action (#700
Browse files Browse the repository at this point in the history
)

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

* remove useless parameter
  • Loading branch information
jsinovassin authored Oct 14, 2024
1 parent 694d671 commit 9022fc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/codeql-analysis-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions manual/src/main/asciidoc/configuration.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit 9022fc3

Please sign in to comment.