<?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: Difference between OnSubJobOk and OnComponentOk in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340723#M108732</link>
    <description>Jack Black,&lt;BR /&gt;OnComponentOk: This link will be executed when 1 Component has succesfully executed. &lt;BR /&gt;OnSubjobOk: This link will be executed when a whole "SubJob" has been executed. This can be multiple components in a flow. In a job you can have different subjobs, you can see what's a subjob when there is a background. The components will be in a sort of box.&lt;BR /&gt;For example:&lt;BR /&gt;You want to read a file into a database and when the file has been inserted in the database you want to sent a mail.&lt;BR /&gt;tFileDelimitedInput --&amp;gt; tMap --&amp;gt; TMssqlOutput&lt;BR /&gt;|&lt;BR /&gt;|OnSubJobOk&lt;BR /&gt;|&lt;BR /&gt;tSendMail&lt;BR /&gt;What this will do is execute the subjob first which are the three component at the top to read the file and insert in the database. Once that's done the Subjob will be completed and it will execute the tSendMail component.&lt;BR /&gt;&lt;BR /&gt;When you only have one component a OnComponentOk and OnSubJobOk link will do the same. Because one component is considered a subjob when it's not linked to any other components.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Tue, 13 Dec 2011 08:27:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-13T08:27:36Z</dc:date>
    <item>
      <title>Difference between OnSubJobOk and OnComponentOk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340721#M108730</link>
      <description>What is the difference?</description>
      <pubDate>Sat, 16 Nov 2024 12:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340721#M108730</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between OnSubJobOk and OnComponentOk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340722#M108731</link>
      <description>Hi
&lt;BR /&gt;OnSubJobOk and OnComponentOk are the same apparently.
&lt;BR /&gt;But in java source code, they are defined with different logic.
&lt;BR /&gt;Here is an example.
&lt;BR /&gt;You need to regard tRowGenerater--OnComponentOk--&amp;gt;tJavaFlex as a subjob.
&lt;BR /&gt;In the end, you will find the 'OnComponentOk' tJava_2 will execute while the 'OnSubjobOk' tJava_1 won't.
&lt;BR /&gt;Best regards!
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 13 Dec 2011 03:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340722#M108731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-13T03:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between OnSubJobOk and OnComponentOk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340723#M108732</link>
      <description>Jack Black,&lt;BR /&gt;OnComponentOk: This link will be executed when 1 Component has succesfully executed. &lt;BR /&gt;OnSubjobOk: This link will be executed when a whole "SubJob" has been executed. This can be multiple components in a flow. In a job you can have different subjobs, you can see what's a subjob when there is a background. The components will be in a sort of box.&lt;BR /&gt;For example:&lt;BR /&gt;You want to read a file into a database and when the file has been inserted in the database you want to sent a mail.&lt;BR /&gt;tFileDelimitedInput --&amp;gt; tMap --&amp;gt; TMssqlOutput&lt;BR /&gt;|&lt;BR /&gt;|OnSubJobOk&lt;BR /&gt;|&lt;BR /&gt;tSendMail&lt;BR /&gt;What this will do is execute the subjob first which are the three component at the top to read the file and insert in the database. Once that's done the Subjob will be completed and it will execute the tSendMail component.&lt;BR /&gt;&lt;BR /&gt;When you only have one component a OnComponentOk and OnSubJobOk link will do the same. Because one component is considered a subjob when it's not linked to any other components.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 13 Dec 2011 08:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340723#M108732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-13T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between OnSubJobOk and OnComponentOk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340724#M108733</link>
      <description>&lt;BR /&gt;The main difference between OnSubjobOK and OnComponentOK is in the execution order of the linked subjob.&amp;nbsp;&lt;BR /&gt;With OnSubjobOK, the linked subjob starts only when the previous subjob completely finishes.&lt;BR /&gt;With OnComponentOK, the linked subjob starts when the previous component finishes.&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jan 2017 12:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340724#M108733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between OnSubJobOk and OnComponentOk</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340725#M108734</link>
      <description>&lt;P&gt;It's worth noting that &lt;B&gt;OnComponentOk &lt;/B&gt;can fire even when you aren't expecting it to. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the example below i call a rest API, get a successful response and write the string "Success" to the file. Even though the subjob didn't go down the failure route the final subjob is still triggered by &lt;B&gt;OnComponentOk&amp;nbsp;&lt;/B&gt;and overwrites the text "Failure"  to the file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has caught a member of my team out recently. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000debDnAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152319i6806754D2C279062/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000debDnAAI.png" alt="0695b00000debDnAAI.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Difference-between-OnSubJobOk-and-OnComponentOk/m-p/2340725#M108734</guid>
      <dc:creator>MattE</dc:creator>
      <dc:date>2023-03-14T10:09:12Z</dc:date>
    </item>
  </channel>
</rss>

