Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
unomi-1.6.0
-
None
Description
We noticed serveral mistakes inside the groovy actions application example in the documentation (https://unomi.apache.org/manual/1_6_x/index.html#_groovy_actions[):]
- In the groovy script:
After actionExecutor = "groovy:helloWorldAction" should be a "," not a ")".
The actionExecutor should be named based on the file-name of the groovy script: "groovy:hello-world"
- In the rule:
The "type" inside the action should be named as the previously defined action-id: ""helloWorldGroovyAction"
We solved it with the example on this page: https://academy.jahia.com/home/documentation/developer/jexperience/2.x/tutorials/tracking-interests-with-a-custom-groovy-action.html