rcenvironment / rce

Distributed, workflow-driven integration environment
https://rcenvironment.de/
51 stars 16 forks source link

Script doesn't write to output #20

Open JASaa opened 6 years ago

JASaa commented 6 years ago

I recently started using the program. I have a simple workflow with an input, a script and another script to print the result (it's just a test because a parametric study didn't work because of the problem I am describing).

The script that I use in written in Python and it basicly writes the input in a xml file, witch is the input of an executable that does some calculations and writes the result in a .txt .

The result seems to be correct, but it doesn't pass it as an output to the next script using RCE.write_output ("output0", output_result) . All inputs and outputs are correctly declared and the components are connected. Is it maybe a problem of my executable?

Thank you.

janflink commented 6 years ago

Hi JASaa,

Well, by considering the given details, I understand that you will pass a .txt file to output0. In order to do this, you need to specify the path to your text file in the write output command. E.g. RCE.write_output("output0", "${dir:tool}/output_result.txt"). You can make use of the directories combobox at the right-hand side to insert the proper placeholder for your use case.

Hope this helps.

Best regards Jan

JASaa commented 6 years ago

Hello,

Thanks for answering.

The output of the script is float read from a .txt, to be used in an optimization, eventually. I changed the code to work in Jython and I am able to pass outputs from my script to the Optimizer. The same doesn't apply when using Python, the code executes correctly and the results are correct but it doesn't pass the result forward to the next component.