blob: a42c06e44b636c65b676c7e4ad30e5b85d8dc7cb [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>0060-get-subfolder-names</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/12/01 12:22:20.526</created_date>
<modified_user>-</modified_user>
<modified_date>2022/12/01 12:22:20.526</modified_date>
</info>
<notepads>
</notepads>
<order>
<hop>
<from>projectHome</from>
<to>shortName</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Get subfolder names</from>
<to>folderName, rowNumber only</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>folderName, rowNumber only</from>
<to>projectHome</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>shortName</from>
<to>Select values</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Select values</from>
<to>validate</to>
<enabled>Y</enabled>
</hop>
</order>
<transform>
<name>Get subfolder names</name>
<type>GetSubFolders</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<file>
<file_required>Y</file_required>
<name>${java.io.tmpdir}/0060/</name>
</file>
<foldername_dynamic>N</foldername_dynamic>
<limit>0</limit>
<rownum>Y</rownum>
<rownum_field>rowNumber</rownum_field>
<attributes/>
<GUI>
<xloc>112</xloc>
<yloc>48</yloc>
</GUI>
</transform>
<transform>
<name>Select values</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>rowNumber</name>
</field>
<field>
<name>shortName</name>
</field>
<select_unspecified>N</select_unspecified>
</fields>
<attributes/>
<GUI>
<xloc>336</xloc>
<yloc>160</yloc>
</GUI>
</transform>
<transform>
<name>folderName, rowNumber only</name>
<type>SelectValues</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>folderName</name>
</field>
<field>
<name>rowNumber</name>
</field>
<select_unspecified>N</select_unspecified>
</fields>
<attributes/>
<GUI>
<xloc>336</xloc>
<yloc>48</yloc>
</GUI>
</transform>
<transform>
<name>projectHome</name>
<type>GetVariable</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<name>projectHome</name>
<variable>${java.io.tmpdir}/0060/</variable>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<length>-1</length>
<precision>-1</precision>
<trim_type>none</trim_type>
</field>
</fields>
<attributes/>
<GUI>
<xloc>528</xloc>
<yloc>48</yloc>
</GUI>
</transform>
<transform>
<name>shortName</name>
<type>ScriptValueMod</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<optimizationLevel>9</optimizationLevel>
<jsScripts>
<jsScript>
<jsScript_type>0</jsScript_type>
<jsScript_name>Script 1</jsScript_name>
<jsScript_script>
var shortName = replace(folderName, projectHome+"/", "");
</jsScript_script>
</jsScript>
<jsScript>
<jsScript_type>-1</jsScript_type>
<jsScript_name>replace_Sample</jsScript_name>
<jsScript_script>// Replaces Strings inside the given Variable.
// It is possible to make more replacements inside
// one call. The given variables must be an odd number
//
// Usage:
// replace(var, var, var);
// 1: String - The Variable with the content to replace.
// 2: String - The Value to search for.
// 3: String - The Value to replace with.
//
// replace(var, var, var, var,var,...)
// 1: String - The Variable with the content to replace.
// 2: String - The First Value to search for.
// 3: String - The First Value to replace with.
// 4: String - The Second Value to search for.
// 5: String - The Second Value to replace with.
// ...
//
// 2006-11-15
//
var str1 = "Hello World, this is a nice function";
var str2 = replace(str1,"World", "Folk");
Alert(str2);
var str2 = replace(str1,"World", "Folk", "nice","beautifull");
Alert(str2);
</jsScript_script>
</jsScript>
</jsScripts>
<fields>
<field>
<name>shortName</name>
<rename>shortName</rename>
<type>String</type>
<length>-1</length>
<precision>-1</precision>
<replace>N</replace>
</field>
</fields>
<attributes/>
<GUI>
<xloc>672</xloc>
<yloc>48</yloc>
</GUI>
</transform>
<transform>
<name>validate</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>576</xloc>
<yloc>160</yloc>
</GUI>
</transform>
<transform_error_handling>
</transform_error_handling>
<attributes/>
</pipeline>