Groovy reference
Ziggizag
New Altair Community Member
Hi,
It seems it is impossible to find Groovy lang scripting reference for RapidMiner.
Is it available? How to know what packages are implemented and how to access them?
I cannot find any clue how to use JsonOutput class in Execute Stript object!
But my question is general - where the hell is the scripting guide???
It seems it is impossible to find Groovy lang scripting reference for RapidMiner.
Is it available? How to know what packages are implemented and how to access them?
I cannot find any clue how to use JsonOutput class in Execute Stript object!
But my question is general - where the hell is the scripting guide???
0
Answers
-
Hi,
if you plan to do any complex coding it might be easier to just write an extension (and then copy a code snippet from there into an Execute Script operator if needed).
https://github.com/rapidminer/rapidminer-extension-template
Do you mean this JsonOutput class?
https://github.com/apache/groovy/blob/master/subprojects/groovy-json/src/main/java/groovy/json/JsonOutput.java
Either import the class viaimport groovy.json.JsonOutput JsonOutput.toJson(new java.util.Date())
or use the fully qualified name to access the classgroovy.json.JsonOutput.toJson(new java.util.Date())
Greetings,
Jonas
0