<?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: How to set the context for sub-jobs through command-line? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212528#M10131</link>
    <description>check "transmit whole context" in your tRunJob</description>
    <pubDate>Fri, 25 Feb 2011 21:24:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-02-25T21:24:50Z</dc:date>
    <item>
      <title>How to set the context for sub-jobs through command-line?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212527#M10130</link>
      <description>Let say I have a context group ctxA with three configurations (DEV, UAT, PROD). I also have two jobs - jobA and subJobB. The subJobB is executed by a component tRunJob in jobA. If I run jobA through command-line with parameter "--context=PROD", how to make sure subJobB is also using "PROD" context?</description>
      <pubDate>Sat, 16 Nov 2024 13:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212527#M10130</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the context for sub-jobs through command-line?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212528#M10131</link>
      <description>check "transmit whole context" in your tRunJob</description>
      <pubDate>Fri, 25 Feb 2011 21:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212528#M10131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-25T21:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the context for sub-jobs through command-line?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212529#M10132</link>
      <description>John, the "Transmit whole context" transmits the context group ctxA to the subJobB, not the selection of context "PROD". The context for tRunJob is controled by selecting the item in the dropdown list box for Context in the Basic settings tag and this selection is hard-coded when Talend generates the Java code. This is the code snippet: 
&lt;BR /&gt; currentComponent = "tRunJob_1"; 
&lt;BR /&gt; java.util.List&amp;lt;String&amp;gt; paraList_tRunJob_1 = new java.util.ArrayList&amp;lt;String&amp;gt;(); 
&lt;BR /&gt; paraList_tRunJob_1.add("--father_pid=" + pid); 
&lt;BR /&gt; paraList_tRunJob_1.add("--root_pid=" + rootPid); 
&lt;BR /&gt; paraList_tRunJob_1.add("--father_node=tRunJob_1"); 
&lt;BR /&gt; paraList_tRunJob_1.add("--context=uat"); 
&lt;BR /&gt; // for 10589 
&lt;BR /&gt; paraList_tRunJob_1.add("--stat_port=" + portStats); 
&lt;BR /&gt;As you see it is hard-coded as "--context=uat". This is not what I want. What I want is how to make the component tRunJob take what I put in the command-line when run the parent job jboA, such as "--context=PROD".</description>
      <pubDate>Fri, 25 Feb 2011 22:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212529#M10132</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-02-25T22:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the context for sub-jobs through command-line?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212530#M10133</link>
      <description>if you transmit the whole context, all the PROD variables will be copied into the child job-- no matter what group it is configured for-- as long as the variable exists in the father job. I prefer this method of managing contexts, as I only have to change it in once place. 
&lt;BR /&gt;Regardless, you should find a "Context" drop-down in the tRunJob that allows you to choose which context is passed to the child jobs. If you do not see this, please let me know what version of Talend you are using...</description>
      <pubDate>Mon, 28 Feb 2011 14:54:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212530#M10133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-28T14:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the context for sub-jobs through command-line?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212531#M10134</link>
      <description>John, it seems that you might not really understand what I want to achieve. Let me explain it in another way: 
&lt;BR /&gt;I'm using Teland Enterprise 4.1.2 and I do see "Context" drop-down in the tRunJob. That is what I don't wnat to use to control the the selection of Context of sub-job. What I want is after I export the parent job, I can run the parent job in command-line in different environments (DEV, UAT, PROD) just by specifying different parameter "--context=XXX" without changing the application and re-exporting the job. The issue is that the command-line parameter "--context=XXX" only takes effect for the parent job, not the sub-job. How to make the command-line parameter "--context=XXX" take effect for both the parent job and the sub-job?</description>
      <pubDate>Mon, 28 Feb 2011 19:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212531#M10134</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-02-28T19:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the context for sub-jobs through command-line?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212532#M10135</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;The issue is that the command-line parameter "--context=XXX" only takes effect for the parent job, not the sub-job. How to make the command-line parameter "--context=XXX" take effect for both the parent job and the sub-job?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You need to check the box 'Transmit whole context'. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 01 Mar 2011 06:45:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-the-context-for-sub-jobs-through-command-line/m-p/2212532#M10135</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-01T06:45:35Z</dc:date>
    </item>
  </channel>
</rss>

