<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" expanded="true" name="Process"> <process expanded="true" height="449" width="882"> <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data" width="90" x="45" y="30"/> <operator activated="true" class="execute_script" expanded="true" height="76" name="Execute Script" width="90" x="246" y="30"> <parameter key="script" value="import javax.swing.JOptionPane; operator.getProcess().getMacroHandler().addMacro("macro", JOptionPane.showInputDialog("Please enter value")); return input;"/> </operator> <operator activated="true" breakpoints="after" class="discretize_by_bins" expanded="true" height="94" name="Discretize" width="90" x="648" y="30"> <parameter key="number_of_bins" value="%{macro}"/> <parameter key="range_name_type" value="short"/> </operator> <connect from_op="Generate Data" from_port="output" to_op="Execute Script" to_port="input 1"/> <connect from_op="Execute Script" from_port="output 1" to_op="Discretize" to_port="example set input"/> <connect from_op="Discretize" from_port="example set output" 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>