<?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: soft exit from the job under a certain condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/soft-exit-from-the-job-under-a-certain-condition/m-p/2234459#M23815</link>
    <description>&lt;P&gt;In Die , did you select advance setting "Exit JVM Immediately" ?&lt;BR /&gt;&lt;BR /&gt;if you need exit error code as 1 , add a tPostJob in your job and do not select above setting.&lt;BR /&gt;&lt;BR /&gt;tPostJob -- &amp;gt; tjava&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need exit error code as 0 , in tDie , set exit code 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need exit error code as 0 in all the case ,&amp;nbsp;&amp;nbsp;add a tPostJob in your job then tjava(as last component of Job) and use expression System.exit(0)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;let me know if works&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2019 19:23:25 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-01-31T19:23:25Z</dc:date>
    <item>
      <title>soft exit from the job under a certain condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/soft-exit-from-the-job-under-a-certain-condition/m-p/2234458#M23814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the prejob I wanted to check if the last record has reached. If reached do a soft exit. I do not want to error out. How to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the prejob, read a file which has last processed record id. If the last record record id is the maximum id of that table, create a done file and do a soft exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this I have a if condition which check for equality of last record id and maximum id and it is true call tFileTouch.&lt;/P&gt;&lt;P&gt;From tFileTouch --&amp;gt; OnComponentOk ---&amp;gt; tDie component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this tDie exists the job only when the priority is Error.&lt;/P&gt;&lt;P&gt;I wanted a soft exit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/soft-exit-from-the-job-under-a-certain-condition/m-p/2234458#M23814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-31T16:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: soft exit from the job under a certain condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/soft-exit-from-the-job-under-a-certain-condition/m-p/2234459#M23815</link>
      <description>&lt;P&gt;In Die , did you select advance setting "Exit JVM Immediately" ?&lt;BR /&gt;&lt;BR /&gt;if you need exit error code as 1 , add a tPostJob in your job and do not select above setting.&lt;BR /&gt;&lt;BR /&gt;tPostJob -- &amp;gt; tjava&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need exit error code as 0 , in tDie , set exit code 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you need exit error code as 0 in all the case ,&amp;nbsp;&amp;nbsp;add a tPostJob in your job then tjava(as last component of Job) and use expression System.exit(0)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;let me know if works&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/soft-exit-from-the-job-under-a-certain-condition/m-p/2234459#M23815</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-01-31T19:23:25Z</dc:date>
    </item>
  </channel>
</rss>

