The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Use io ports in Script Execution Operator in Java
Hi,
I have another problem:
I try to use 2 Input ports and 2 output ports into Script Execution Operator and unfortunatelly it dosen't work,
my code:
groovy.lang.MissingMethodException: No signature of method: com.rapidminer.operator.ports.impl.OutputPortImpl.receive() is applicable for argument types: (com.rapidminer.example.set.SimpleExampleSet) values: [SimpleExampleSet:
Possible solutions: deliver(com.rapidminer.operator.IOObject).
I tried:
IOObject ioo = examplseSet5;
IOContainer ioc = new IOContainer(new IOObject[] {ioo});
but RM still throw Exception.
I have another problem:
I try to use 2 Input ports and 2 output ports into Script Execution Operator and unfortunatelly it dosen't work,
my code:
I have Exception
ExampleSet exampleSet5 = table.createExampleSet(label);
List<IOObject> connList = new IOContainer(exampleSet5).asList();
operator.getOutputPorts().getPortByName("output 1").receive( connList.get(0) );
groovy.lang.MissingMethodException: No signature of method: com.rapidminer.operator.ports.impl.OutputPortImpl.receive() is applicable for argument types: (com.rapidminer.example.set.SimpleExampleSet) values: [SimpleExampleSet:
Possible solutions: deliver(com.rapidminer.operator.IOObject).
I tried:
IOObject ioo = examplseSet5;
IOContainer ioc = new IOContainer(new IOObject[] {ioo});
but RM still throw Exception.
Tagged:
0
Answers
is there any particular reason why you don't want to take the advice I posted in your other thread here?
Trying to programmatically create processes is a) tedious and b) error-prone, so it is discouraged.
Regards,
Marco
the "Execute script" operator can take inputs and deliver them to the according output ports - if you do so in the script.
So for example when you deliver an ExampleSet, you need to return it inside the script: You don't need to call the output ports directly.
Regards,
Marco
Best
Marcin