<?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: Create dynamic file Name in mediation component cSplitter? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-dynamic-file-Name-in-mediation-component-cSplitter/m-p/2350825#M117610</link>
    <description>&lt;P&gt;You should use a java bean and use a static list of string to store your filenames, then after the split, according to the message number (1,2,3 or 4) set it the name in the list (the correct header is CamelFileName)&lt;/P&gt;</description>
    <pubDate>Wed, 30 May 2018 07:51:30 GMT</pubDate>
    <dc:creator>Loko</dc:creator>
    <dc:date>2018-05-30T07:51:30Z</dc:date>
    <item>
      <title>Create dynamic file Name in mediation component cSplitter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-dynamic-file-Name-in-mediation-component-cSplitter/m-p/2350824#M117609</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am new to Talend. I want to create a dynamic name for writing the files. The flow is like cFile is consuming Four files from the directory then aggregate to one File on the basis of the file name and in cProcessor again&amp;nbsp; get the list of file name and folllowed by csplitter and then again cfile genertaes 4 files with source file name and the body.&lt;BR /&gt;&lt;BR /&gt;here is the code for cProcessor:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;List&amp;lt;String&amp;gt; fileList = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;fileList = (List&amp;lt;String&amp;gt;)exchange.getProperty("CamelFileName");&lt;BR /&gt;System.out.println("After aggregation the fileName: "+&lt;BR /&gt;fileList);&lt;/P&gt; 
&lt;P&gt;List&amp;lt;String&amp;gt; listBody = new ArrayList&amp;lt;String&amp;gt;();&lt;BR /&gt;listBody = (List&amp;lt;String&amp;gt;)exchange.getProperty("body");&lt;BR /&gt;System.out.println("After aggregation the body: "+ listBody);&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;exchange.setProperty("FileName",fileList);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-dynamic-file-Name-in-mediation-component-cSplitter/m-p/2350824#M117609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create dynamic file Name in mediation component cSplitter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-dynamic-file-Name-in-mediation-component-cSplitter/m-p/2350825#M117610</link>
      <description>&lt;P&gt;You should use a java bean and use a static list of string to store your filenames, then after the split, according to the message number (1,2,3 or 4) set it the name in the list (the correct header is CamelFileName)&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 07:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-dynamic-file-Name-in-mediation-component-cSplitter/m-p/2350825#M117610</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2018-05-30T07:51:30Z</dc:date>
    </item>
  </channel>
</rss>

