blob: 0e9697ded14def5fa4888c2f212b13061e6815fe [file] [log] [blame]
<?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>0003-field-splitter-enclosure</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>2020/11/18 15:20:34.388</created_date>
<modified_user>-</modified_user>
<modified_date>2020/11/18 15:20:34.388</modified_date>
<key_for_session_key>H4sIAAAAAAAAAAMAAAAAAAAAAAA=</key_for_session_key>
<is_key_private>N</is_key_private>
</info>
<notepads>
<notepad>
<note>NOTE: If variable
HOP_SPLIT_FIELDS_REMOVE_ENCLOSURE
is set, the enclosure is removed from the split strings</note>
<xloc>144</xloc>
<yloc>192</yloc>
<width>279</width>
<heigth>88</heigth>
<fontname>Noto Sans</fontname>
<fontsize>11</fontsize>
<fontbold>N</fontbold>
<fontitalic>N</fontitalic>
<fontcolorred>14</fontcolorred>
<fontcolorgreen>58</fontcolorgreen>
<fontcolorblue>90</fontcolorblue>
<backgroundcolorred>201</backgroundcolorred>
<backgroundcolorgreen>232</backgroundcolorgreen>
<backgroundcolorblue>251</backgroundcolorblue>
<bordercolorred>14</bordercolorred>
<bordercolorgreen>58</bordercolorgreen>
<bordercolorblue>90</bordercolorblue>
</notepad>
</notepads>
<order>
<hop>
<from>Split fields</from>
<to>validation</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>string</from>
<to>Split fields</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>validation</from>
<to>verify</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>verify</from>
<to>OK</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>verify</from>
<to>Abort</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>
<row_threshold>0</row_threshold>
<message>A string was not split correctly using an enclosure</message>
<always_log_rows>Y</always_log_rows>
<abort_option>ABORT_WITH_ERROR</abort_option>
<attributes/>
<GUI>
<xloc>640</xloc>
<yloc>224</yloc>
</GUI>
</transform>
<transform>
<name>OK</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>784</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>Split fields</name>
<type>FieldSplitter</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<splitfield>string</splitfield>
<delimiter>:</delimiter>
<enclosure>"</enclosure>
<escape_string/>
<fields>
<field>
<name>a</name>
<id/>
<idrem>N</idrem>
<type>String</type>
<format/>
<group/>
<decimal/>
<currency/>
<length>-1</length>
<precision>-1</precision>
<nullif/>
<ifnull/>
<trimtype>none</trimtype>
</field>
<field>
<name>b</name>
<id/>
<idrem>N</idrem>
<type>String</type>
<format/>
<group/>
<decimal/>
<currency/>
<length>-1</length>
<precision>-1</precision>
<nullif/>
<ifnull/>
<trimtype>none</trimtype>
</field>
<field>
<name>c</name>
<id/>
<idrem>N</idrem>
<type>String</type>
<format/>
<group/>
<decimal/>
<currency/>
<length>-1</length>
<precision>-1</precision>
<nullif/>
<ifnull/>
<trimtype>none</trimtype>
</field>
<field>
<name>d</name>
<id/>
<idrem>N</idrem>
<type>String</type>
<format/>
<group/>
<decimal/>
<currency/>
<length>-1</length>
<precision>-1</precision>
<nullif/>
<ifnull/>
<trimtype>none</trimtype>
</field>
<field>
<name>e</name>
<id/>
<idrem>N</idrem>
<type>String</type>
<format/>
<group/>
<decimal/>
<currency/>
<length>-1</length>
<precision>-1</precision>
<nullif/>
<ifnull/>
<trimtype>none</trimtype>
</field>
</fields>
<attributes/>
<GUI>
<xloc>320</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>string</name>
<type>DataGrid</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>string</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
</field>
</fields>
<data>
<line>
<item>cpe:2.3:a:lemonldap-ng:"lemonldap::":2.0.3:*:*:*:*:*:*:*</item>
</line>
</data>
<attributes/>
<GUI>
<xloc>96</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>validation</name>
<type>ConcatFields</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<separator>%</separator>
<enclosure>"</enclosure>
<enclosure_forced>N</enclosure_forced>
<enclosure_fix_disabled>N</enclosure_fix_disabled>
<format/>
<encoding/>
<fields>
<field>
<name>a</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>b</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>c</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>d</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>e</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
</fields>
<ConcatFields>
<targetFieldName>validation</targetFieldName>
<targetFieldLength>1000</targetFieldLength>
<removeSelectedFields>N</removeSelectedFields>
</ConcatFields>
<attributes/>
<GUI>
<xloc>496</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform>
<name>verify</name>
<type>FilterRows</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<send_true_to>OK</send_true_to>
<send_false_to>Abort</send_false_to>
<compare>
<condition>
<negated>N</negated>
<leftvalue>validation</leftvalue>
<function>=</function>
<rightvalue/>
<value>
<name>constant</name>
<type>String</type>
<text>cpe%2.3%a%lemonldap-ng%"lemonldap::"</text>
<length>-1</length>
<precision>-1</precision>
<isnull>N</isnull>
<mask/>
</value>
</condition>
</compare>
<attributes/>
<GUI>
<xloc>640</xloc>
<yloc>96</yloc>
</GUI>
</transform>
<transform_error_handling>
</transform_error_handling>
<attributes/>
</pipeline>