<?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 twaitforfile to fetch multiple (four) files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/twaitforfile-to-fetch-multiple-four-files/m-p/2221406#M15425</link>
    <description>&lt;P&gt;I have four files in a certain location and I need to create a job such that it should run only if there are four expected files. I know I can use twaitforfile four times, but I believe it's redundant process. All the files will have a common naming format with date and time in the name etc. Is there a different solution other than using multiple twaitforfile components?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:36:57 GMT</pubDate>
    <dc:creator>sekhar546</dc:creator>
    <dc:date>2024-11-16T02:36:57Z</dc:date>
    <item>
      <title>twaitforfile to fetch multiple (four) files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/twaitforfile-to-fetch-multiple-four-files/m-p/2221406#M15425</link>
      <description>&lt;P&gt;I have four files in a certain location and I need to create a job such that it should run only if there are four expected files. I know I can use twaitforfile four times, but I believe it's redundant process. All the files will have a common naming format with date and time in the name etc. Is there a different solution other than using multiple twaitforfile components?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/twaitforfile-to-fetch-multiple-four-files/m-p/2221406#M15425</guid>
      <dc:creator>sekhar546</dc:creator>
      <dc:date>2024-11-16T02:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: twaitforfile to fetch multiple (four) files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/twaitforfile-to-fetch-multiple-four-files/m-p/2221407#M15426</link>
      <description>&lt;P&gt;Maybe you can try tFileList to iterate all the files? There are several pre-defined global variables that can be used to determine if it satisfies the condition to continue or not, use runIf connector to trigger next processing.&lt;/P&gt; 
&lt;P&gt;These global variables includes&lt;BR /&gt;((Integer)globalMap.get("tFileList_1_NB_FILE"))&lt;BR /&gt;// counts the number of files are found.&lt;BR /&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE"))&lt;BR /&gt;// the current file name &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 10:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/twaitforfile-to-fetch-multiple-four-files/m-p/2221407#M15426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-23T10:32:09Z</dc:date>
    </item>
  </channel>
</rss>

