<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Moving files within the bucket after deleting source files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287561#M61134</link>
    <description>Hello 
&lt;BR /&gt;The key includes the folder path, you need to exclude the the folder path and only iterate the files.
&lt;BR /&gt;eg:
&lt;BR /&gt;tS3list--iterate--tjava--runIf--tS3Copy--oncomponent--tS3Delete
&lt;BR /&gt;
&lt;BR /&gt;on tjava:
&lt;BR /&gt;String key = ((String)globalMap.get("tS3List_1_CURRENT_KEY"));
&lt;BR /&gt;int length=key.length();
&lt;BR /&gt;
&lt;BR /&gt;if(length&amp;gt;12){
&lt;BR /&gt;globalMap.put("isContinue",true);
&lt;BR /&gt;}else{
&lt;BR /&gt;globalMap.put("isContinue",false);
&lt;BR /&gt;}
&lt;BR /&gt;
&lt;BR /&gt;Set the condition of runIf link as:
&lt;BR /&gt;(Boolean)globalMap.get("isContinue")
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps you!
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong
&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Dec 2017 08:56:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-26T08:56:04Z</dc:date>
    <item>
      <title>Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287560#M61133</link>
      <description>&lt;P&gt;scenario : moving the files to destination folder (s3 within the bucket) then removing the source files&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;job flow&lt;/P&gt; 
&lt;P&gt;ts3 connection&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;ts3 list&lt;/P&gt; 
&lt;P&gt;bucket name&amp;nbsp; :-&amp;nbsp; &amp;nbsp; "bucket_src"&lt;/P&gt; 
&lt;P&gt;Key prefix :-&amp;nbsp; &amp;nbsp; &amp;nbsp;"Main/Source/"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;ts3 copy&lt;/P&gt; 
&lt;P&gt;source configuration bucket :-&amp;nbsp;"bucket_src"&lt;/P&gt; 
&lt;P&gt;Key :-&amp;nbsp;((String)globalMap.get("tS3List_1_CURRENT_KEY"))&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Destination configuration bucket :-&amp;nbsp;"bucket_src"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Key :- "Main/Dest/" + ((String)globalMap.get("tS3List_1_CURRENT_KEY")).substring( ((String)globalMap.get("tS3List_1_CURRENT_KEY")).lastIndexOf("/") + 1 )&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;ts3 Delete&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Bucket :-&amp;nbsp;"bucket_src"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Key :-&amp;nbsp;((String)globalMap.get("tS3List_1_CURRENT_KEY"))&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;(Deleting entire source folder )&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;my requirement I want to delete files after loading to destination folder&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Please suggest to deleting only files.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;MRA&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 04:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287560#M61133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T04:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287561#M61134</link>
      <description>Hello 
&lt;BR /&gt;The key includes the folder path, you need to exclude the the folder path and only iterate the files.
&lt;BR /&gt;eg:
&lt;BR /&gt;tS3list--iterate--tjava--runIf--tS3Copy--oncomponent--tS3Delete
&lt;BR /&gt;
&lt;BR /&gt;on tjava:
&lt;BR /&gt;String key = ((String)globalMap.get("tS3List_1_CURRENT_KEY"));
&lt;BR /&gt;int length=key.length();
&lt;BR /&gt;
&lt;BR /&gt;if(length&amp;gt;12){
&lt;BR /&gt;globalMap.put("isContinue",true);
&lt;BR /&gt;}else{
&lt;BR /&gt;globalMap.put("isContinue",false);
&lt;BR /&gt;}
&lt;BR /&gt;
&lt;BR /&gt;Set the condition of runIf link as:
&lt;BR /&gt;(Boolean)globalMap.get("isContinue")
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps you!
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Dec 2017 08:56:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287561#M61134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T08:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287562#M61135</link>
      <description>&lt;P&gt;The Name "(Boolean)globalMap.get("isContinue")" is not valid or already exists.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 10:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287562#M61135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287563#M61136</link>
      <description>&lt;P&gt;Run if condition error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Name "(Boolean)globalMap.get("isContinue")" is not valid or already exists.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 10:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287563#M61136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287564#M61137</link>
      <description>No double quotes enclose the expression, it is (Boolean)globalMap.get("isContinue").</description>
      <pubDate>Tue, 26 Dec 2017 14:46:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287564#M61137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T14:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287565#M61138</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;even without double quotation also getting same error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;MRA&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 06:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287565#M61138</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T06:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287566#M61139</link>
      <description>Can you please capture a screenshot to show your job design and where you write the expression?</description>
      <pubDate>Wed, 27 Dec 2017 07:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287566#M61139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-27T07:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files within the bucket after deleting source files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287567#M61140</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;
&lt;P&gt;thank a lot for quick replay&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;MRA&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is the job flow. I achived&lt;BR /&gt;&lt;BR /&gt;EX:-job flow&lt;BR /&gt;ts3 connection---ts3 list----ts3 copy&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|----on subjob ok&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ts3 list----ts3 Delete&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ts3 connection&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ts3 list&lt;/P&gt;
&lt;P&gt;bucket name :- "bucket_src"&lt;/P&gt;
&lt;P&gt;Key prefix :- "Main/Source/"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ts3 copy&lt;/P&gt;
&lt;P&gt;source configuration bucket :- "bucket_src"&lt;/P&gt;
&lt;P&gt;Key :- ((String)globalMap.get("tS3List_1_CURRENT_KEY"))&lt;/P&gt;
&lt;P&gt;Destination configuration bucket :- "bucket_src"&lt;/P&gt;
&lt;P&gt;Key :- "Main/Dest/" + ((String)globalMap.get("tS3List_1_CURRENT_KEY")).substring( ((String)globalMap.get("tS3List_1_CURRENT_KEY")).lastIndexOf("/") + 1 )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ts3 list&lt;/P&gt;
&lt;P&gt;bucket name :- "bucket_src"&lt;/P&gt;
&lt;P&gt;Key prefix(multiple key prefix) :- "Main/Source/output"&amp;nbsp; ('output' is the file name which we are getting in source directory)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"Main/Source/temp"&amp;nbsp; ('temp' is the file name which we are getting in source directory)&lt;/P&gt;
&lt;P&gt;ts3 Delete&lt;/P&gt;
&lt;P&gt;Bucket :- "bucket_src"&lt;/P&gt;
&lt;P&gt;Key :- ((String)globalMap.get("tS3List_1_CURRENT_KEY"))&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2017 06:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Moving-files-within-the-bucket-after-deleting-source-files/m-p/2287567#M61140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-31T06:51:37Z</dc:date>
    </item>
  </channel>
</rss>

