| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <pipeline> |
| <info> |
| <name>0004-repeat_pipeline</name> |
| <name_sync_with_filename>Y</name_sync_with_filename> |
| <description/> |
| <extended_description/> |
| <pipeline_version/> |
| <pipeline_type>Normal</pipeline_type> |
| <parameters> |
| </parameters> |
| <capture_transform_performance>N</capture_transform_performance> |
| <transform_performance_capturing_delay>1000</transform_performance_capturing_delay> |
| <transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit> |
| <created_user>-</created_user> |
| <created_date>2022/04/11 09:14:15.582</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2022/04/11 09:14:15.582</modified_date> |
| </info> |
| <notepads> |
| </notepads> |
| <order> |
| <hop> |
| <from>Generate rows</from> |
| <to>Get variables</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>counter + 1</from> |
| <to>counter >5</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>counter >5</from> |
| <to>Set variables</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>Get variables</from> |
| <to>Write to log</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>Write to log</from> |
| <to>counter + 1</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>counter >5</from> |
| <to>Set variables 2</to> |
| <enabled>Y</enabled> |
| </hop> |
| </order> |
| <transform> |
| <name>Generate rows</name> |
| <type>RowGenerator</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| </fields> |
| <interval_in_ms>5000</interval_in_ms> |
| <last_time_field>FiveSecondsAgo</last_time_field> |
| <limit>1</limit> |
| <never_ending>N</never_ending> |
| <row_time_field>now</row_time_field> |
| <attributes/> |
| <GUI> |
| <xloc>80</xloc> |
| <yloc>144</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Get variables</name> |
| <type>GetVariable</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| <field> |
| <length>-1</length> |
| <name>counter</name> |
| <precision>-1</precision> |
| <trim_type>none</trim_type> |
| <type>Integer</type> |
| <variable>${COUNTER}</variable> |
| </field> |
| </fields> |
| <attributes/> |
| <GUI> |
| <xloc>256</xloc> |
| <yloc>144</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Set variables</name> |
| <type>SetVariable</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| <field> |
| <field_name>new_counter</field_name> |
| <variable_name>COUNTER</variable_name> |
| <variable_type>PARENT_WORKFLOW</variable_type> |
| </field> |
| </fields> |
| <use_formatting>Y</use_formatting> |
| <attributes/> |
| <GUI> |
| <xloc>992</xloc> |
| <yloc>144</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Set variables 2</name> |
| <type>SetVariable</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <fields> |
| <field> |
| <field_name>new_counter</field_name> |
| <variable_name>END_LOOP</variable_name> |
| <variable_type>PARENT_WORKFLOW</variable_type> |
| </field> |
| </fields> |
| <use_formatting>Y</use_formatting> |
| <attributes/> |
| <GUI> |
| <xloc>800</xloc> |
| <yloc>256</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Write to log</name> |
| <type>WriteToLog</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <loglevel>log_level_basic</loglevel> |
| <displayHeader>Y</displayHeader> |
| <limitRows>N</limitRows> |
| <limitRowsNumber>0</limitRowsNumber> |
| <logmessage>counter value is: ${COUNTER} </logmessage> |
| <fields> |
| </fields> |
| <attributes/> |
| <GUI> |
| <xloc>448</xloc> |
| <yloc>144</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>counter + 1</name> |
| <type>Calculator</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <calculation> |
| <calc_type>CONSTANT</calc_type> |
| <field_a>1</field_a> |
| <field_name>C_1</field_name> |
| <remove>N</remove> |
| <value_length>-1</value_length> |
| <value_precision>-1</value_precision> |
| <value_type>Integer</value_type> |
| </calculation> |
| <calculation> |
| <calc_type>ADD</calc_type> |
| <field_a>counter</field_a> |
| <field_b>C_1</field_b> |
| <field_name>new_counter</field_name> |
| <remove>N</remove> |
| <value_length>-1</value_length> |
| <value_precision>-1</value_precision> |
| <value_type>Integer</value_type> |
| </calculation> |
| <failIfNoFile>Y</failIfNoFile> |
| <attributes/> |
| <GUI> |
| <xloc>624</xloc> |
| <yloc>144</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>counter >5</name> |
| <type>FilterRows</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <compare> |
| <condition> |
| <conditions> |
| </conditions> |
| <function>></function> |
| <leftvalue>new_counter</leftvalue> |
| <negated>N</negated> |
| <operator>-</operator> |
| <value> |
| <isnull>N</isnull> |
| <length>-1</length> |
| <mask>####0;-####0</mask> |
| <name>constant</name> |
| <precision>0</precision> |
| <text>5</text> |
| <type>Integer</type> |
| </value> |
| </condition> |
| </compare> |
| <send_false_to>Set variables</send_false_to> |
| <send_true_to>Set variables 2</send_true_to> |
| <attributes/> |
| <GUI> |
| <xloc>800</xloc> |
| <yloc>144</yloc> |
| </GUI> |
| </transform> |
| <transform_error_handling> |
| </transform_error_handling> |
| <attributes/> |
| </pipeline> |