A program to recognize and reward our most engaged community members
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.0.0" expanded="true" name="Process"> <process expanded="true" height="632" width="1044"> <operator activated="true" class="set_macro" compatibility="5.0.8" expanded="true" height="76" name="Set Macro" width="90" x="31" y="138"> <parameter key="macro" value="prefix"/> <parameter key="value" value="XXXX"/> </operator> <operator activated="true" class="loop_files" compatibility="5.0.0" expanded="true" height="76" name="Loop Files" width="90" x="246" y="120"> <parameter key="directory" value="C:\Documents and Settings\Alien\My Documents\rm_workspace"/> <parameter key="filter" value=".*"/> <parameter key="iterate_over_subdirs" value="true"/> <process expanded="true" height="296" width="705"> <operator activated="true" class="set_macro" compatibility="5.0.8" expanded="true" height="76" name="Path+Pre+File" width="90" x="179" y="30"> <parameter key="macro" value="nu"/> <parameter key="value" value="%{parent_path}\%{prefix}\%{file_name}"/> </operator> <operator activated="true" class="provide_macro_as_log_value" compatibility="5.0.8" expanded="true" height="76" name="Provide Macro as Log Value (2)" width="90" x="447" y="30"> <parameter key="macro_name" value="nu"/> </operator> <operator activated="true" class="log" compatibility="5.0.8" expanded="true" height="76" name="Log" width="90" x="585" y="30"> <list key="log"> <parameter key="name" value="operator.Path+Pre+File.value.macro_value"/> </list> </operator> <connect from_port="in 1" to_op="Path+Pre+File" to_port="through 1"/> <connect from_op="Path+Pre+File" from_port="through 1" to_op="Provide Macro as Log Value (2)" to_port="through 1"/> <connect from_op="Provide Macro as Log Value (2)" from_port="through 1" to_op="Log" to_port="through 1"/> <portSpacing port="source_in 1" spacing="0"/> <portSpacing port="source_in 2" spacing="0"/> </process> </operator> <connect from_op="Set Macro" from_port="through 1" to_op="Loop Files" to_port="in 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> </process> </operator></process>
Is there a way way to export the variable for path and filename out of the loop?
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.0.8" expanded="true" name="Process"> <process expanded="true" height="-20" width="-50"> <operator activated="true" class="loop_parameters" compatibility="5.0.8" expanded="true" height="76" name="Loop Parameters" width="90" x="126" y="39"> <list key="parameters"> <parameter key="Set Macro.value" value="XXXX,YYYY"/> </list> <process expanded="true" height="300" width="891"> <operator activated="true" class="set_macro" compatibility="5.0.8" expanded="true" height="76" name="Set Macro" width="90" x="112" y="75"> <parameter key="macro" value="prefix"/> <parameter key="value" value="YYYY"/> </operator> <operator activated="true" class="loop_files" compatibility="5.0.8" expanded="true" height="76" name="Loop Files" width="90" x="313" y="75"> <parameter key="directory" value="C:\Documents and Settings\Alien\My Documents\rm_workspace"/> <parameter key="filter" value=".*"/> <parameter key="iterate_over_subdirs" value="true"/> <process expanded="true" height="300" width="891"> <operator activated="true" class="set_macro" compatibility="5.0.8" expanded="true" height="76" name="Path+Pre+File" width="90" x="112" y="30"> <parameter key="macro" value="nu"/> <parameter key="value" value="%{parent_path}\%{prefix}\%{file_name}"/> </operator> <operator activated="true" class="provide_macro_as_log_value" compatibility="5.0.8" expanded="true" height="76" name="Provide Macro as Log Value (2)" width="90" x="313" y="30"> <parameter key="macro_name" value="nu"/> </operator> <operator activated="true" class="log" compatibility="5.0.8" expanded="true" height="76" name="Log" width="90" x="514" y="30"> <list key="log"> <parameter key="name" value="operator.Path+Pre+File.value.macro_value"/> </list> </operator> <connect from_port="in 1" to_op="Path+Pre+File" to_port="through 1"/> <connect from_op="Path+Pre+File" from_port="through 1" to_op="Provide Macro as Log Value (2)" to_port="through 1"/> <connect from_op="Provide Macro as Log Value (2)" from_port="through 1" to_op="Log" to_port="through 1"/> <portSpacing port="source_in 1" spacing="0"/> <portSpacing port="source_in 2" spacing="0"/> </process> </operator> <connect from_port="input 1" to_op="Set Macro" to_port="through 1"/> <connect from_op="Set Macro" from_port="through 1" to_op="Loop Files" to_port="in 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="source_input 2" spacing="0"/> <portSpacing port="sink_performance" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator> <connect from_op="Loop Parameters" from_port="result 1" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>