<?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 [resolved] Passing Header values to a SubJob in a route in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-Header-values-to-a-SubJob-in-a-route/m-p/2312067#M83049</link>
    <description>I am trying to figure out the best way to pass header values from a Job to a SubJob within a route. 
&lt;BR /&gt;Here is how my current route looks (Screenshot attached - Hopefully): 
&lt;BR /&gt;Main Job: 
&lt;BR /&gt;Poll for a content file --&amp;gt; 
&lt;BR /&gt;Set header values for fileName, fileSize, DBConnection, etc --&amp;gt; 
&lt;BR /&gt;Call a stored proc to insert the file --&amp;gt; 
&lt;BR /&gt;Store the result as a header value to use later (result is a UID) --&amp;gt; 
&lt;BR /&gt;Move the file to a different directory --&amp;gt; 
&lt;BR /&gt;Create the body of my JMS message which is just the location of the file to Checksum --&amp;gt; 
&lt;BR /&gt;Call a JMS Queue to do a MD5Checksum on the file. 
&lt;BR /&gt;SubJob: 
&lt;BR /&gt;Receive JMS Message with File Location and Name --&amp;gt; 
&lt;BR /&gt;Checksum the file --&amp;gt; 
&lt;BR /&gt;Set the checksum result as a header value --&amp;gt; 
&lt;BR /&gt;Call a stored procedure to add the checksum to the file record in the DB 
&lt;BR /&gt;When I call the subjob I lose all of the Header Values that I set in the main job. I could change my JMS message to contain all of the data I need, but I would like to pass all the header values in the JMS message instead. Is there a way to do this?</description>
    <pubDate>Fri, 01 Jun 2012 16:47:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-01T16:47:50Z</dc:date>
    <item>
      <title>[resolved] Passing Header values to a SubJob in a route</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-Header-values-to-a-SubJob-in-a-route/m-p/2312067#M83049</link>
      <description>I am trying to figure out the best way to pass header values from a Job to a SubJob within a route. 
&lt;BR /&gt;Here is how my current route looks (Screenshot attached - Hopefully): 
&lt;BR /&gt;Main Job: 
&lt;BR /&gt;Poll for a content file --&amp;gt; 
&lt;BR /&gt;Set header values for fileName, fileSize, DBConnection, etc --&amp;gt; 
&lt;BR /&gt;Call a stored proc to insert the file --&amp;gt; 
&lt;BR /&gt;Store the result as a header value to use later (result is a UID) --&amp;gt; 
&lt;BR /&gt;Move the file to a different directory --&amp;gt; 
&lt;BR /&gt;Create the body of my JMS message which is just the location of the file to Checksum --&amp;gt; 
&lt;BR /&gt;Call a JMS Queue to do a MD5Checksum on the file. 
&lt;BR /&gt;SubJob: 
&lt;BR /&gt;Receive JMS Message with File Location and Name --&amp;gt; 
&lt;BR /&gt;Checksum the file --&amp;gt; 
&lt;BR /&gt;Set the checksum result as a header value --&amp;gt; 
&lt;BR /&gt;Call a stored procedure to add the checksum to the file record in the DB 
&lt;BR /&gt;When I call the subjob I lose all of the Header Values that I set in the main job. I could change my JMS message to contain all of the data I need, but I would like to pass all the header values in the JMS message instead. Is there a way to do this?</description>
      <pubDate>Fri, 01 Jun 2012 16:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Passing-Header-values-to-a-SubJob-in-a-route/m-p/2312067#M83049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-01T16:47:50Z</dc:date>
    </item>
  </channel>
</rss>

