A program to recognize and reward our most engaged community members
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.3.015"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process"> <process expanded="true"> <operator activated="true" class="retrieve" compatibility="5.3.015" expanded="true" height="60" name="Retrieve test_db" width="90" x="179" y="435"> <parameter key="repository_entry" value="Datenbanken/test_db"/> </operator> <operator activated="true" class="filter_example_range" compatibility="5.3.015" expanded="true" height="76" name="Filter Example Range" width="90" x="313" y="390"> <parameter key="first_example" value="1"/> <parameter key="last_example" value="50"/> </operator> <operator activated="false" class="read_database" compatibility="5.3.015" expanded="true" height="60" name="Read Database" width="90" x="45" y="120"> <parameter key="connection" value="sqlserver"/> <parameter key="query" value="select DP_Name, TIME_ON from ALRHIST2012 where CTRL_NAME like '%Alarm%' and TIME_OFF is not null and DP_NAME in ('AMS-A1_VERBINDUNG_ZU_K10','AMS-A1_VERBINDUNG_ZU_K1','AMS-A1_VERBINDUNG_ZU_A2')"/> <enumeration key="parameters"/> </operator> <operator activated="true" class="loop_values" compatibility="5.3.015" expanded="true" height="76" name="Loop Values" width="90" x="313" y="210"> <parameter key="attribute" value="DP_Name"/> <process expanded="true"> <operator activated="true" class="filter_examples" compatibility="5.3.015" expanded="true" height="76" name="Filter Examples" width="90" x="112" y="30"> <parameter key="condition_class" value="attribute_value_filter"/> <parameter key="parameter_string" value="DP_Name=%{loop_value}"/> </operator> <connect from_port="example set" to_op="Filter Examples" to_port="example set input"/> <connect from_op="Filter Examples" from_port="example set output" to_port="out 1"/> <portSpacing port="source_example set" spacing="0"/> <portSpacing port="sink_out 1" spacing="0"/> <portSpacing port="sink_out 2" spacing="0"/> </process> </operator> <connect from_op="Retrieve test_db" from_port="output" to_op="Filter Example Range" to_port="example set input"/> <connect from_op="Filter Example Range" from_port="example set output" to_op="Loop Values" to_port="example set"/> <connect from_op="Loop Values" from_port="out 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>
Regina wrote:Can you say me, how I can combine the splitted example sets again? I would like calculate the average of a numerical attribute and put the result of all example sets in the collection out in one example set.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.3.015"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process"> <process expanded="true"> <operator activated="true" class="retrieve" compatibility="5.3.015" expanded="true" height="60" name="Retrieve Example2_DB" width="90" x="179" y="210"> <parameter key="repository_entry" value="Datenbanken/Example2_DB"/> </operator> <operator activated="true" class="loop_values" compatibility="5.3.015" expanded="true" height="94" name="Loop Values" width="90" x="380" y="165"> <parameter key="attribute" value="DP_NAME"/> <process expanded="true"> <operator activated="true" class="filter_examples" compatibility="5.3.015" expanded="true" height="76" name="Filter Examples" width="90" x="112" y="30"> <parameter key="condition_class" value="attribute_value_filter"/> <parameter key="parameter_string" value="DP_NAME=%{loop_value}"/> </operator> <operator activated="true" class="sort" compatibility="5.3.015" expanded="true" height="76" name="Sort (3)" width="90" x="246" y="30"> <parameter key="attribute_name" value="TIME_ON"/> </operator> <operator activated="true" class="series:differentiate_example_set" compatibility="5.3.000" expanded="true" height="76" name="Differentiate" width="90" x="380" y="30"> <parameter key="attribute_name" value="TIME_ON"/> </operator> <operator activated="true" class="filter_examples" compatibility="5.3.015" expanded="true" height="76" name="Filter Examples (2)" width="90" x="514" y="30"> <parameter key="condition_class" value="no_missing_attributes"/> </operator> <operator activated="true" class="rename" compatibility="5.3.015" expanded="true" height="76" name="Rename (3)" width="90" x="380" y="210"> <parameter key="old_name" value="change(TIME_ON)"/> <parameter key="new_name" value="Differenz"/> <list key="rename_additional_attributes"/> </operator> <operator activated="true" class="aggregate" compatibility="5.3.015" expanded="true" height="76" name="Aggregate" width="90" x="514" y="210"> <list key="aggregation_attributes"> <parameter key="Differenz" value="average"/> </list> <parameter key="group_by_attributes" value="|DP_NAME"/> </operator> <connect from_port="example set" to_op="Filter Examples" to_port="example set input"/> <connect from_op="Filter Examples" from_port="example set output" to_op="Sort (3)" to_port="example set input"/> <connect from_op="Sort (3)" from_port="example set output" to_op="Differentiate" to_port="example set input"/> <connect from_op="Differentiate" from_port="example set output" to_op="Filter Examples (2)" to_port="example set input"/> <connect from_op="Filter Examples (2)" from_port="example set output" to_op="Rename (3)" to_port="example set input"/> <connect from_op="Rename (3)" from_port="example set output" to_op="Aggregate" to_port="example set input"/> <connect from_op="Aggregate" from_port="example set output" to_port="out 1"/> <portSpacing port="source_example set" spacing="0"/> <portSpacing port="sink_out 1" spacing="0"/> <portSpacing port="sink_out 2" spacing="0"/> <portSpacing port="sink_out 3" spacing="0"/> </process> </operator> <connect from_op="Retrieve Example2_DB" from_port="output" to_op="Loop Values" to_port="example set"/> <connect from_op="Loop Values" from_port="out 1" to_port="result 1"/> <connect from_op="Loop Values" from_port="out 2" to_port="result 2"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> <portSpacing port="sink_result 3" spacing="0"/> </process> </operator></process>