<?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 tJava iterate link in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJava-iterate-link/m-p/2307824#M79223</link>
    <description>Hi 
&lt;BR /&gt;To begin, I'm going to quickly explain my objectives: 
&lt;BR /&gt;I'm working on a (TDS) server which use xml configuration files (called catalogs) to provide differents access to scientific datas like 
&lt;BR /&gt;grib or netcdf files. Because new files are created dailly, we want to realize a system to automate the generation of the catalog 
&lt;BR /&gt;(configuration) files of this server. So I would like to use TOS to make the most part of the work. 
&lt;BR /&gt;The jobs consist of scanning differents directories corresponding to data products to check out the files that will be included in 
&lt;BR /&gt;the xml server's catalogs. Between the scan and the xml file creation, some treatments could be needed. 
&lt;BR /&gt;I would like to know how I can use the iterate links of the tJava/tJavaFlex component. 
&lt;BR /&gt;For example, I'm using a tFileList that iterate on a tJava, which filter and then store each valid filepath using a routine FileList I created 
&lt;BR /&gt;(by the way, I could not find how to use the tFileList to get only the path of the files : tFileList can for example be combinated with 
&lt;BR /&gt;tFileInputXxx but the result is not the one I expect because I only need to get the filepath list, not to deal with the file's content directly, that's why I made a FileList routine). 
&lt;BR /&gt;So, once the file list is created, I need to iterate other each filepath to optionnaly read the file content (to get netcdf metadata) and then write some "elements" in a xml file. These elements are for example: 
&lt;BR /&gt; &amp;lt;netcdf location="/home/directory/20071021/champs3D.r2_21-10-2007.nc" 
&lt;BR /&gt; coordValue="2007-10-21T00:00:00Z" ncoords="72" enhance="true" /&amp;gt; 
&lt;BR /&gt;The problem is that I don't know how to link the tJava component to any other using the iteration : I would like the tJava to 
&lt;BR /&gt;generate an xml entry for each file previously stored. 
&lt;BR /&gt;- tFileList iterate on the tJava_1 =&amp;gt; build the list 
&lt;BR /&gt;- tFileList run if ok another tJava_2 =&amp;gt; display number of files 
&lt;BR /&gt;Then I want this tJava_2 to output the filepath and associated datas to a new component wich will write each file element 
&lt;BR /&gt;into a unique xml file (tFileOutputXML). 
&lt;BR /&gt;I hope my question is comprehensible ! 
&lt;BR /&gt;If you need more precisions, I can provide some. 
&lt;BR /&gt;Thanks a lot 
&lt;BR /&gt;Jo</description>
    <pubDate>Sat, 16 Nov 2024 14:32:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:32:09Z</dc:date>
    <item>
      <title>tJava iterate link</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-iterate-link/m-p/2307824#M79223</link>
      <description>Hi 
&lt;BR /&gt;To begin, I'm going to quickly explain my objectives: 
&lt;BR /&gt;I'm working on a (TDS) server which use xml configuration files (called catalogs) to provide differents access to scientific datas like 
&lt;BR /&gt;grib or netcdf files. Because new files are created dailly, we want to realize a system to automate the generation of the catalog 
&lt;BR /&gt;(configuration) files of this server. So I would like to use TOS to make the most part of the work. 
&lt;BR /&gt;The jobs consist of scanning differents directories corresponding to data products to check out the files that will be included in 
&lt;BR /&gt;the xml server's catalogs. Between the scan and the xml file creation, some treatments could be needed. 
&lt;BR /&gt;I would like to know how I can use the iterate links of the tJava/tJavaFlex component. 
&lt;BR /&gt;For example, I'm using a tFileList that iterate on a tJava, which filter and then store each valid filepath using a routine FileList I created 
&lt;BR /&gt;(by the way, I could not find how to use the tFileList to get only the path of the files : tFileList can for example be combinated with 
&lt;BR /&gt;tFileInputXxx but the result is not the one I expect because I only need to get the filepath list, not to deal with the file's content directly, that's why I made a FileList routine). 
&lt;BR /&gt;So, once the file list is created, I need to iterate other each filepath to optionnaly read the file content (to get netcdf metadata) and then write some "elements" in a xml file. These elements are for example: 
&lt;BR /&gt; &amp;lt;netcdf location="/home/directory/20071021/champs3D.r2_21-10-2007.nc" 
&lt;BR /&gt; coordValue="2007-10-21T00:00:00Z" ncoords="72" enhance="true" /&amp;gt; 
&lt;BR /&gt;The problem is that I don't know how to link the tJava component to any other using the iteration : I would like the tJava to 
&lt;BR /&gt;generate an xml entry for each file previously stored. 
&lt;BR /&gt;- tFileList iterate on the tJava_1 =&amp;gt; build the list 
&lt;BR /&gt;- tFileList run if ok another tJava_2 =&amp;gt; display number of files 
&lt;BR /&gt;Then I want this tJava_2 to output the filepath and associated datas to a new component wich will write each file element 
&lt;BR /&gt;into a unique xml file (tFileOutputXML). 
&lt;BR /&gt;I hope my question is comprehensible ! 
&lt;BR /&gt;If you need more precisions, I can provide some. 
&lt;BR /&gt;Thanks a lot 
&lt;BR /&gt;Jo</description>
      <pubDate>Sat, 16 Nov 2024 14:32:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-iterate-link/m-p/2307824#M79223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: tJava iterate link</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-iterate-link/m-p/2307825#M79224</link>
      <description>I think that's ok : i get the latest TOS and manage to do what I want using the tFixedFlowInput !!&lt;BR /&gt;It allows to get some rows from global variables, then I succed to link the filePath row to the tFileOutputXML so now each&lt;BR /&gt;filepath from my global list object is sent to the xml file !! &lt;BR /&gt;I dont really know if this is the better solution but it works !&lt;BR /&gt;However, I still don't know what is the purpose of the iteration link of tJava components and how it works, if someone&lt;BR /&gt;could give me few explanations ...&lt;BR /&gt;Thanks&lt;BR /&gt;Jo</description>
      <pubDate>Tue, 23 Oct 2007 13:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-iterate-link/m-p/2307825#M79224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-23T13:46:13Z</dc:date>
    </item>
  </channel>
</rss>

