Get ready event from "Execute Programm" to start "Read CSV" File from disk
Sorry! Wrong Forum, maybe some moderator can move my question to "Getting started..". Thanks
-------------------------------------------------------------------------------------------------------------------------------------
Inside "Execute Program" build a new CSV File on Disk. After "Execute Program" ist ready I what to read this file with "Read CSV". But If I connect "Execute Program" with "Read CSV" there is no more Parameter "csv File" possible (Input field is removed). So I need a Read Event to start "Read CSV".
How to do this?
Process sample
Thanks!
Thomas
Best Answer
-
jczogalla Employee-RapidMiner, Member Posts: 144 RM Engineering
Hi Thomas!
The ports "output" and "error" of Execute Program create file objects with the corresponding "stdout" and "stderr" content for the executed program. Connecting "output" to the Read CSV tells it that it should take that file object. So if your program writes the new file to "stdout", it will be available at that port.
Regarding the Read Event: As long as your program does not create some background threads to do the work and termiantes before the background threads, the Execute Program Operator will wait until completion of the program and after that, Read CSV may be executed. To check that the execution order is indeed Execute Program -> Read CSV, click the icon in the top right corner of the Process View (shown below) to see the execution order. If the Execute Program Operator is not executed first, right click it and select "Bring Operator to Front".
2
Answers
Hi @thomas_wiedmann,
The Operator Open File is the one you would use here.
Best,
Edin
Thanks jczogalla ,
I will check these next days again, but as I tried this some days before, PHP get no STDIN or STDOUT Data from RapidMiner like discussed here:
https://community.rapidminer.com/t5/Getting-Started-Forum/Looking-for-a-sample-to-execute-PHP-using-Execute-Program/td-p/46575
Thanks
Thomas
Thanks Edin_Klapic ,
I found no (more) "Open File" Operator in RapidMiner Studio 8.1 (Free). Maybe "Open File" is outdated.
https://docs.rapidminer.com/latest/studio/operators/
Thanks
Thomas
@jczogalla
Very helpfull. I've check this function and get this image...
So I can run this process without connection between "Execute Program" and "Read CSV".
Thanks!
Thomas
@Edin_Klapic
Operator "Open File" is available. Don't know why it is diabled in Docs...
Thanks!
Thomas
Hi @thomas_wiedmann,
Interesting - I was not aware of this. I will check what is the reason for this.
Does the Operator solve your issue?
Best,
Edin
Hi @Edin_Klapic
just a step on my long way... please have a look at my new question
https://community.rapidminer.com/t5/Getting-Started-Forum/Execution-Order-seems-not-to-work-Any-wait-neccessary/m-p/47010#M1963
Thanks!
Thomas