Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

[ACKED] macro expansion in Generate Report:report name

tennenrishintennenrishin Member Posts: 177 Contributor II
edited October 2019 in Help
When I run the following process, the first report (r1) does not get generated at all. However, if I manually substitute the macro values, it works as expected. Is this a bug, or do I misunderstand the way macros work?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.2.006">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="5.2.006" expanded="true" name="Process">
   <process expanded="true" height="529" width="892">
     <operator activated="true" class="set_macro" compatibility="5.2.006" expanded="true" height="76" name="path" width="90" x="45" y="75">
       <parameter key="macro" value="path"/>
       <parameter key="value" value="C:\Users\isak\Desktop"/>
     </operator>
     <operator activated="true" class="set_macro" compatibility="5.2.006" expanded="true" height="76" name="Set Macro" width="90" x="246" y="75">
       <parameter key="macro" value="report_name"/>
       <parameter key="value" value="r1"/>
     </operator>
     <operator activated="true" class="reporting:generate_report" compatibility="5.2.000" expanded="true" height="76" name="Generate Report" width="90" x="380" y="75">
       <parameter key="report_name" value="%{report_name}"/>
       <parameter key="format" value="HTML"/>
       <parameter key="html_output_directory" value="%{path}\r1"/>
     </operator>
     <operator activated="true" class="reporting:add_section" compatibility="5.2.000" expanded="true" height="76" name="Add Section" width="90" x="514" y="75">
       <parameter key="report_name" value="%{report_name}"/>
       <parameter key="report_section_name" value="one"/>
     </operator>
     <operator activated="true" class="set_macro" compatibility="5.2.006" expanded="true" height="76" name="Set Macro (2)" width="90" x="246" y="165">
       <parameter key="macro" value="report_name"/>
       <parameter key="value" value="r2"/>
     </operator>
     <operator activated="true" class="reporting:generate_report" compatibility="5.2.000" expanded="true" height="76" name="Generate Report (2)" width="90" x="380" y="165">
       <parameter key="report_name" value="%{report_name}"/>
       <parameter key="format" value="HTML"/>
       <parameter key="html_output_directory" value="%{path}\r2"/>
     </operator>
     <operator activated="true" class="reporting:add_section" compatibility="5.2.000" expanded="true" height="76" name="Add Section (2)" width="90" x="514" y="165">
       <parameter key="report_name" value="%{report_name}"/>
       <parameter key="report_section_name" value="two"/>
     </operator>
     <connect from_op="path" from_port="through 1" to_op="Set Macro" to_port="through 1"/>
     <connect from_op="Set Macro" from_port="through 1" to_op="Generate Report" to_port="through 1"/>
     <connect from_op="Generate Report" from_port="through 1" to_op="Add Section" to_port="through 1"/>
     <connect from_op="Add Section" from_port="through 1" to_op="Set Macro (2)" to_port="through 1"/>
     <connect from_op="Set Macro (2)" from_port="through 1" to_op="Generate Report (2)" to_port="through 1"/>
     <connect from_op="Generate Report (2)" from_port="through 1" to_op="Add Section (2)" to_port="through 1"/>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="0"/>
   </process>
 </operator>
</process>
Platform: WIN 7
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hm, looks like a very strange bug. Can you please submit it at bugs.rapid-i.com, so it does not get lost?

    Best, Marius
  • tennenrishintennenrishin Member Posts: 177 Contributor II
    Any idea whether there has been any progress on this? I think I remember submitting the bug at the time, but I'm not experienced with Bugzilla and I have trouble tracking the bug down. Could it be the same bug as this one?:
    http://rapid-i.com/rapidforum/index.php/topic,5923.0.html

    It's really giving me a hard time :`-(

Sign In or Register to comment.