<?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 How to pass data to other component using cprocessor in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-other-component-using-cprocessor/m-p/2209272#M8166</link>
    <description>&lt;P&gt;I need to create a file name from cprocessor and pass the same to cAwss3 component as "CamelAwsS3Key". Can i do that? how?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 06:13:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T06:13:41Z</dc:date>
    <item>
      <title>How to pass data to other component using cprocessor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-other-component-using-cprocessor/m-p/2209272#M8166</link>
      <description>&lt;P&gt;I need to create a file name from cprocessor and pass the same to cAwss3 component as "CamelAwsS3Key". Can i do that? how?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-other-component-using-cprocessor/m-p/2209272#M8166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass data to other component using cprocessor</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-other-component-using-cprocessor/m-p/2209273#M8167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLapAAG"&gt;@lalkiran88&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can do this with a cSetHeader component (&lt;A href="https://help.talend.com/reader/wPJh3yAxz0baR8imIwmlYA/PJMBt6~g0wBzv97ZUwEpUw" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/wPJh3yAxz0baR8imIwmlYA/PJMBt6~g0wBzv97ZUwEpUw&lt;/A&gt;), but I sense you are using some code to build your value. In which case there is a way to do the job of the tSetHeader component using code. In your cProcessor code box, carry out your value creation code and then add the following line....&lt;/P&gt; 
&lt;PRE&gt;exchange.getIn().setHeader("CamelAwsS3Key", "myFile.txt");&lt;/PRE&gt; 
&lt;P&gt;This will add your new header to the IN Body of the Exchange message. Obviously replace the "myFile.txt" value with your calculated value&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 14:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-pass-data-to-other-component-using-cprocessor/m-p/2209273#M8167</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-28T14:13:48Z</dc:date>
    </item>
  </channel>
</rss>

