| <?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>0002-test-json-webservice</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/10/04 15:13:56.464</created_date> |
| <modified_user>-</modified_user> |
| <modified_date>2022/10/04 15:13:56.464</modified_date> |
| <key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key> |
| <is_key_private>N</is_key_private> |
| </info> |
| <notepads> |
| </notepads> |
| <order> |
| <hop> |
| <from>Call testService</from> |
| <to>Check Status Code</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>Check Status Code</from> |
| <to>Abort</to> |
| <enabled>Y</enabled> |
| </hop> |
| <hop> |
| <from>Generate rows</from> |
| <to>Call testService</to> |
| <enabled>Y</enabled> |
| </hop> |
| </order> |
| <transform> |
| <name>Abort</name> |
| <type>Abort</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <abort_option>ABORT_WITH_ERROR</abort_option> |
| <always_log_rows>Y</always_log_rows> |
| <row_threshold>0</row_threshold> |
| <attributes/> |
| <GUI> |
| <xloc>448</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Call testService</name> |
| <type>Http</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <url>http://hop-server:8181/hop/webService/?service=testService</url> |
| <urlInField>N</urlInField> |
| <ignoreSsl>N</ignoreSsl> |
| <urlField/> |
| <encoding>UTF-8</encoding> |
| <httpLogin>cluster</httpLogin> |
| <httpPassword>Encrypted 2be98afc86aa7f2e4cb1aa265cd86aac8</httpPassword> |
| <proxyHost/> |
| <proxyPort/> |
| <socketTimeout>10000</socketTimeout> |
| <connectionTimeout>10000</connectionTimeout> |
| <closeIdleConnectionsTime>-1</closeIdleConnectionsTime> |
| <lookup> |
| </lookup> |
| <result> |
| <name>result</name> |
| <code>status</code> |
| <response_time/> |
| <response_header/> |
| </result> |
| <attributes/> |
| <GUI> |
| <xloc>144</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform> |
| <name>Check Status Code</name> |
| <type>FilterRows</type> |
| <description/> |
| <distribute>Y</distribute> |
| <custom_distribution/> |
| <copies>1</copies> |
| <partitioning> |
| <method>none</method> |
| <schema_name/> |
| </partitioning> |
| <send_true_to/> |
| <send_false_to/> |
| <compare> |
| <condition> |
| <negated>N</negated> |
| <leftvalue>status</leftvalue> |
| <function><></function> |
| <rightvalue/> |
| <value> |
| <name>constant</name> |
| <type>Integer</type> |
| <text>200</text> |
| <length>-1</length> |
| <precision>0</precision> |
| <isnull>N</isnull> |
| <mask>####0;-####0</mask> |
| </value> |
| </condition> |
| </compare> |
| <attributes/> |
| <GUI> |
| <xloc>304</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <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> |
| <never_ending>N</never_ending> |
| <limit>1</limit> |
| <row_time_field>now</row_time_field> |
| <attributes/> |
| <GUI> |
| <xloc>48</xloc> |
| <yloc>80</yloc> |
| </GUI> |
| </transform> |
| <transform_error_handling> |
| </transform_error_handling> |
| <attributes/> |
| </pipeline> |