"[SOLVED] empty-string macro in Execute Process operator"

tennenrishintennenrishin MemberPosts:177Maven
edited June 2019 inHelp
Hi all

Is there a way to denote an empty string in the "macro value" field of the "macros" parameter of the "Execute Process" operator.

If I leave it blank, the entire macro seems to be discarded automatically.

Thanks in advance
Isak
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, MemberPosts:1,869Unicorn
    Hi Isaac,

    no, that's currently not possible. If you really need it you could use the Generate Macro with the replace() function. I admit it's not the most elegant thing, but it works. Please see the attached process.

    Best, Marius





    <宏/ >















    <连接from_op="Set Macro" from_port="through 1" to_op="Generate Macro" to_port="through 1"/>
    <连接from_op="Generate Macro" from_port="through 1" to_op="Print to Console" to_port="through 1"/>
    <连接from_op="Print to Console" from_port="through 1" to_port="result 1"/>






    Oh, I just saw that you need it for Execute Process. That's not possible, however you could define a string representing "empty" and replace it with empty in the executed process with the above operators.
Sign InorRegisterto comment.