I want to execute a Rapidminer process from Java to use the output ExampleSet (Process Result) for subsequent operations (with Java).
I managed the process execution with the code below, but I don't have a clue how to obtain the process Result Example Set.
Ideally, I want to get any Example Set independent of the variables, but if you need to generate the metadata beforehand, will have to be.
package com.companyname.rm;
import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.operator.OperatorException;
import com.rapidminer.tools.XMLException;
import java.io.File;
import java.io.IOException;
public class RunProcess {
public static void main(String[] args) {
try {
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Process process = new Process(new File("//my_path/..../test_JAVA.rmp"));
process.run();
} catch (IOException | XMLException | OperatorException ex) {
ex.printStackTrace();
}
}
}