<?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: tJavaRow - how to exit job but run tPostJob? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341802#M109725</link>
    <description>&lt;P&gt;Have you tried to use:&lt;/P&gt;&lt;P&gt;return; &lt;/P&gt;&lt;P&gt;That should quit from the actualy function. But postjob should still execute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can use continue; to skip the components on the "right" side of the flow for the entry.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 23:43:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-12T23:43:09Z</dc:date>
    <item>
      <title>tJavaRow - how to exit job but run tPostJob?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341800#M109723</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is a part of my job:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bGjgRAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137214i46A70625C6EFBF3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bGjgRAAS.png" alt="0695b00000bGjgRAAS.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJavaRow_1 should end/quit the job if a certain condition is met.&lt;/P&gt;&lt;P&gt;I tried using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (whatEverCondition == true)&lt;/P&gt;&lt;P&gt; System.exit(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically this is working but the problem is that tPostjob_1 is not executed anymore and so the end time of the job&amp;nbsp;is not written to DB anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Please note:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I cannot use a tDie component because this will cause an exception which is caught by my tLogCatcher what I don't want since no execption takes place just a condition to end the job. &lt;/P&gt;&lt;P&gt;I also cannot deactivate 'Catch tDie' in tLogCatcher basic settings since I have other tDie components in my job which need to be caught by tLogCatcher.&lt;/P&gt;&lt;P&gt;Basically I need a tQuit or tEnd component &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I quit a job using Java code (inside tJavaRow_1) but still run tPostJob_1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341800#M109723</guid>
      <dc:creator>mr_burns</dc:creator>
      <dc:date>2024-11-15T22:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow - how to exit job but run tPostJob?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341801#M109724</link>
      <description>&lt;P&gt;System.exit(1) is not the best way to safely end a job on a condition having been met to end it. Can you explain what the condition is and why you need to do this? &lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:30:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341801#M109724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow - how to exit job but run tPostJob?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341802#M109725</link>
      <description>&lt;P&gt;Have you tried to use:&lt;/P&gt;&lt;P&gt;return; &lt;/P&gt;&lt;P&gt;That should quit from the actualy function. But postjob should still execute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can use continue; to skip the components on the "right" side of the flow for the entry.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 23:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341802#M109725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-12T23:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: tJavaRow - how to exit job but run tPostJob?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341803#M109726</link>
      <description>&lt;P&gt;Great idea! I hadn't thought of attempting this.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJavaRow-how-to-exit-job-but-run-tPostJob/m-p/2341803#M109726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-13T10:43:03Z</dc:date>
    </item>
  </channel>
</rss>

