<?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: Global variable to get job status in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346094#M113538</link>
    <description>&lt;P&gt;it returns null &lt;/P&gt;</description>
    <pubDate>Mon, 31 May 2021 21:13:35 GMT</pubDate>
    <dc:creator>Ameyy</dc:creator>
    <dc:date>2021-05-31T21:13:35Z</dc:date>
    <item>
      <title>Global variable to get job status</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346092#M113536</link>
      <description>&lt;P&gt;Is there a global variable to use to return the job execution status" Success or Failure? I do not want to use tstatcatcher.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346092#M113536</guid>
      <dc:creator>Ameyy</dc:creator>
      <dc:date>2024-11-16T00:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable to get job status</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346093#M113537</link>
      <description>&lt;P&gt;Usually you would expect this to be looked for after running a child job. To get the value from the tRunJob, you'd use the following....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....in the job calling the tRunJob.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During the running of the job, I believe the globalMap value you will want to look at is .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("talendJobLog_SUBPROCESS_STATE"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.....but this will depend on timing. I've not tried this, so I would be interested to see how this works out. I'd recommend carrying out a test using a tPostJob and a tJava to test this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 20:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346093#M113537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-31T20:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable to get job status</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346094#M113538</link>
      <description>&lt;P&gt;it returns null &lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 21:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346094#M113538</guid>
      <dc:creator>Ameyy</dc:creator>
      <dc:date>2021-05-31T21:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable to get job status</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346095#M113539</link>
      <description>&lt;P&gt;OK, I have just double checked what I did and my answer came from the fact that I was looking at the source code of a job with a tDie in it. I've just looked at an empty job and the code suggests that the status is set at the very end of the job. Getting it within the the running time of the job will require the use of tDie components or the stat catcher. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you let me know what your use case is and maybe also share some screenshots? It is very simple to get status of a job while it is running, but you may need to rework the job a little to allow this.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 09:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346095#M113539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T09:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Global variable to get job status</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346096#M113540</link>
      <description>&lt;P&gt;I have a pre job, logic to load date into target and post job. in the prejob i initiate my start time and end time is obviously from post job through tjava component. I just need to know how to do the status of a job using tjava.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 19:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Global-variable-to-get-job-status/m-p/2346096#M113540</guid>
      <dc:creator>Ameyy</dc:creator>
      <dc:date>2021-06-01T19:50:00Z</dc:date>
    </item>
  </channel>
</rss>

