Execute Script


Synopsis

This operator executes arbitrary Groovy scripts.


Description

This operator can be used to execute arbitrary Groovy scripts. This basically means that analysts can write their own operators directly within the process by specifiying Java code and / or a Groovy script which will be interpreted and executed during process runtime. For a complete reference of Groovy scripting please refer to http://groovy.codehaus.org/.

In addition to the usual scripting code elements from Groovy, the RapidMiner scripting operator defines some special scripting elements:

Example: operator.log("text")

Example: operator.getProcess()

Example: ExampleSet exampleSet = operator.getInput(ExampleSet.class)

for (Example example : exampleSet) { ... }

String value = example["attribute_name"]; or double value = example["attribute_name"];

example["attribute_name"] = 5.7;

Note: Scripts written for this operator may access Java code. Scripts may hence become incompatible in future releases of RapidMiner.


Input


Output


Parameters


ExampleProcess