Execution Order seems not to work. Any wait neccessary...?

User: "thomas_wiedmann"
New Altair Community Member
Updated by Jocelyn

Execution Order seems not to work after "Execute Program". "Execute Program" (PHP Script inside) do two things. I have added a "sleep(1)" at the end of the PHP Script (wait 1 second). But this has no effect.

 

<?php
// echo 'start php';

$aData = array();
$sData = null;

$sData = file_get_contents('M:/Scannen-AS/rapidminer-php-input.csv');
$aData = explode(PHP_EOL,$sData);

asort($aData);

$sData = implode(PHP_EOL,$aData);
// fwrite(STDOUT, $sData);

file_put_contents('M:/Scannen-AS/rapidminer-php-output.csv',$sData);

sleep(1);

?>

 

 

a) read a files and reorder it

b) write a new file with the ordered data

 

After this "Load File" give me an Error. But the missing file exist. If I run the process a second time (without delete the work files directory) the process seems to work.

 

RapidMiner.JPG

 

Pic. Working file directory

RapidMiner2.JPG

 

Any help?

 

Thanks!

Thomas

 

 

Find more posts tagged with

Sort by:
1 - 1 of 11