<?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 loop, execute, then continue with main flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-loop-execute-then-continue-with-main-flow/m-p/2243764#M30142</link>
    <description>I found a solution -&amp;nbsp;&lt;BR /&gt;1. create subjob&lt;BR /&gt;2. you can send input variables using context - subjob can has his own variables, which are not visible to context of main job&lt;BR /&gt;3. Output can be done via context variable by passing something by reference (e.g. concurenthashmap)&amp;nbsp;</description>
    <pubDate>Tue, 03 Mar 2015 13:00:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-03T13:00:48Z</dc:date>
    <item>
      <title>Create loop, execute, then continue with main flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-loop-execute-then-continue-with-main-flow/m-p/2243763#M30141</link>
      <description>Hi&lt;BR /&gt;Im trying to solve something like this :&lt;BR /&gt;In main flow I call webservice, got list of items, then I need to call webservice for each item I've received in a loop, find correct subitem (response from webservice in loop) and continue with main flow.&lt;BR /&gt;So basically in pseudocode I need this :&lt;BR /&gt;list = webserviceCallback();&lt;BR /&gt;foreach(item : list) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;response = webserviceCallback(item);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(item == expectedResult) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;result = item;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&amp;nbsp;&lt;BR /&gt;}&lt;BR /&gt;continue main flow ...&lt;BR /&gt;&lt;BR /&gt;What is the best way to achieve this ?&lt;BR /&gt;I tried the subjob, but Im not sure how to pass input variable there and retrieve output.&lt;BR /&gt;Another posibility would be create some sort of 'subflow' in main job, but Im not sure how to do this either.&lt;BR /&gt;Any thought or suggestions are welcome...</description>
      <pubDate>Tue, 03 Mar 2015 09:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-loop-execute-then-continue-with-main-flow/m-p/2243763#M30141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-03T09:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create loop, execute, then continue with main flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-loop-execute-then-continue-with-main-flow/m-p/2243764#M30142</link>
      <description>I found a solution -&amp;nbsp;&lt;BR /&gt;1. create subjob&lt;BR /&gt;2. you can send input variables using context - subjob can has his own variables, which are not visible to context of main job&lt;BR /&gt;3. Output can be done via context variable by passing something by reference (e.g. concurenthashmap)&amp;nbsp;</description>
      <pubDate>Tue, 03 Mar 2015 13:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-loop-execute-then-continue-with-main-flow/m-p/2243764#M30142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-03T13:00:48Z</dc:date>
    </item>
  </channel>
</rss>

