<?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: [resolved] How to get subjob received parameter? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362075#M126280</link>
    <description>I just found another solution, which is faster but it works if you have only one parameter to transmit to the father job. 
&lt;BR /&gt;Instead of adding the 2nd line, you can replace the tContextDump with a tFixedFlowInput to generate one row with 2 fields: key (string) and value (same datatype as the context parameter). 
&lt;BR /&gt;Then set "NbInserEnreg" for the key and context.NbInserEnreg for the value. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Karine</description>
    <pubDate>Wed, 22 Jul 2009 14:10:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-07-22T14:10:14Z</dc:date>
    <item>
      <title>[resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362068#M126273</link>
      <description>Hello, 
&lt;BR /&gt;I'm using parameters to transmit context value from main job parent to subjob child. That works fine. 
&lt;BR /&gt;I wander how I can get back received parameters from subjob child operation such as the number of row inserted. 
&lt;BR /&gt;Main job 
&lt;BR /&gt;parameters values 
&lt;BR /&gt;ExportFileName ... 
&lt;BR /&gt;NbInserEnreg context.NbInserEnreg 
&lt;BR /&gt;Subjob child 
&lt;BR /&gt;context.NbInserEnreg = ((Integer)globalMap.get("tJDBCOutput_2_NB_LINE_INSERTED"));</description>
      <pubDate>Sat, 16 Nov 2024 13:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362068#M126273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362069#M126274</link>
      <description>Hi, 
&lt;BR /&gt;One solution is to use a tContextDump and a tBufferOutput at the end of the child job. 
&lt;BR /&gt;Then in the father job you can retrieve the parameters by linking a tContextLoad to the tRunJob. 
&lt;BR /&gt;Have a look at this topic for more info: 
&lt;A href="http://www.talendforge.org/forum/viewtopic.php?pid=26940" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/viewtopic.php?pid=26940&lt;/A&gt; 
&lt;BR /&gt;Hope this helps, 
&lt;BR /&gt;Karine</description>
      <pubDate>Tue, 21 Jul 2009 13:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362069#M126274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T13:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362070#M126275</link>
      <description>Hi, 
&lt;BR /&gt;I had a look but there are no sample of the way to use these components even in the TOS documentation. "No scenario is available for this component yet." 
&lt;BR /&gt;I know I could also use an intermediate file to share these data between parent and child but I'd rather work in memory. 
&lt;BR /&gt;Could you give me more information about 
&lt;BR /&gt;tContextLoad, tContextDump, tBufferOutput for this purpose of retreiving parameters values from a child job? 
&lt;BR /&gt;how to retreive value from key for some context parameter?</description>
      <pubDate>Tue, 21 Jul 2009 16:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362070#M126275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362071#M126276</link>
      <description>Or you could use this custom component : &lt;A href="http://www.talendforge.org/exchange/tos/extension_view.php?eid=155" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/exchange/tos/extension_view.php?eid=155&lt;/A&gt;&lt;BR /&gt;Or the child job tContextDump component writes to a file then the parent job from this file tContextLoad.</description>
      <pubDate>Tue, 21 Jul 2009 16:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362071#M126276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T16:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362072#M126277</link>
      <description>Please see attached screenshots for an example of how to use tContextLoad, tContextDump and tBufferOutput components. 
&lt;BR /&gt;In the scenario, the child job transfers all the context parameters which are also in father job context. 
&lt;BR /&gt;The tBufferOutput in child job and the tRunJob in father job should have the same schema (key,value). If you're using TOS 3.1.x, in the tRunJob component you can directly retrieve the schema from the tbufferOutput using the "copy child job" button. 
&lt;BR /&gt;Hope it's clear enough, 
&lt;BR /&gt;Karine</description>
      <pubDate>Tue, 21 Jul 2009 17:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362072#M126277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-21T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362073#M126278</link>
      <description>Hi, 
&lt;BR /&gt;thanks for your help. 
&lt;BR /&gt;I first set the context.NbInserEnreg to 0 in the parent job 
&lt;BR /&gt;I use tRunJob with the "load" link to tContextLoad: I see many rows corresponding to context key values, but the context value NbInserEnreg set to XX in the child job is not retreived in the parent job after tRunJob... 
&lt;BR /&gt;I add tContextDump --&amp;gt;tBufferOut as the last step of my child job (schema key/value) 
&lt;BR /&gt;However context is not exactly the same in both job as I use many contexts parameter (database, file, ...). 
&lt;BR /&gt;context.NbInserEnreg is defined in both jobs.</description>
      <pubDate>Wed, 22 Jul 2009 11:18:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362073#M126278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T11:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362074#M126279</link>
      <description>Hi,
&lt;BR /&gt;I think it's because the tContextDump doesn't take the new value of your parameter. 
&lt;BR /&gt;Context parameters are stored in 2 places context.Name and context.setProperty("Name",context.Name as a string).
&lt;BR /&gt;So if you are using custom code to change the value of a parameter, you have to use both. Or you can use a tContextLoad instead of custom code...
&lt;BR /&gt;Try to add this line in your child job: 
&lt;BR /&gt;context.setProperty("NbInserEnreg",String.valueOf(context.NbInserEnreg));
&lt;BR /&gt;just after: context.NbInserEnreg = ((Integer)globalMap.get("tJDBCOutput_2_NB_LINE_INSERTED"));
&lt;BR /&gt;It should do the trick.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Karine</description>
      <pubDate>Wed, 22 Jul 2009 13:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362074#M126279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T13:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362075#M126280</link>
      <description>I just found another solution, which is faster but it works if you have only one parameter to transmit to the father job. 
&lt;BR /&gt;Instead of adding the 2nd line, you can replace the tContextDump with a tFixedFlowInput to generate one row with 2 fields: key (string) and value (same datatype as the context parameter). 
&lt;BR /&gt;Then set "NbInserEnreg" for the key and context.NbInserEnreg for the value. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Karine</description>
      <pubDate>Wed, 22 Jul 2009 14:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362075#M126280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-22T14:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to get subjob received parameter?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362076#M126281</link>
      <description>Hi,
&lt;BR /&gt;thanks a lot for your help. ("Context parameters are stored in 2 places ")
&lt;BR /&gt;Both solutions work fine!
&lt;BR /&gt;Kind regards,
&lt;BR /&gt;JNB</description>
      <pubDate>Thu, 23 Jul 2009 10:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-get-subjob-received-parameter/m-p/2362076#M126281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-23T10:28:44Z</dc:date>
    </item>
  </channel>
</rss>

