<?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 [resolved] get the exit code returned by a subjob in a Run If trigger in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-get-the-exit-code-returned-by-a-subjob-in-a-Run-If/m-p/2266860#M45944</link>
    <description>Hy,
&lt;BR /&gt;I need some help with the following scenario.
&lt;BR /&gt;I have 4 jobs that I am running with tRunJob.
&lt;BR /&gt;One of those jobs is created to do some action in case one of the other jobs are failling.
&lt;BR /&gt;Because I can not link the other 3 jobs with the fourth one using a trigger OnSubjobError, I thought that it would be ok to link them using a trigger Run If.
&lt;BR /&gt;All is good until now, but the question is how do I get the exit code returned from the other subjobs to see if the child job should run or not.
&lt;BR /&gt;Is there a method? I searched in all the documents that I have and a lot of posts from this forum, but I could not find an answer to my question.
&lt;BR /&gt;Thanks for help!</description>
    <pubDate>Sat, 16 Nov 2024 13:06:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:06:26Z</dc:date>
    <item>
      <title>[resolved] get the exit code returned by a subjob in a Run If trigger</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-get-the-exit-code-returned-by-a-subjob-in-a-Run-If/m-p/2266860#M45944</link>
      <description>Hy,
&lt;BR /&gt;I need some help with the following scenario.
&lt;BR /&gt;I have 4 jobs that I am running with tRunJob.
&lt;BR /&gt;One of those jobs is created to do some action in case one of the other jobs are failling.
&lt;BR /&gt;Because I can not link the other 3 jobs with the fourth one using a trigger OnSubjobError, I thought that it would be ok to link them using a trigger Run If.
&lt;BR /&gt;All is good until now, but the question is how do I get the exit code returned from the other subjobs to see if the child job should run or not.
&lt;BR /&gt;Is there a method? I searched in all the documents that I have and a lot of posts from this forum, but I could not find an answer to my question.
&lt;BR /&gt;Thanks for help!</description>
      <pubDate>Sat, 16 Nov 2024 13:06:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-get-the-exit-code-returned-by-a-subjob-in-a-Run-If/m-p/2266860#M45944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] get the exit code returned by a subjob in a Run If trigger</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-get-the-exit-code-returned-by-a-subjob-in-a-Run-If/m-p/2266861#M45945</link>
      <description>After further reading and searching, I found it.&lt;BR /&gt;&lt;PRE&gt;((Integer)globalMap.get("tRunJob_1_CHILD_RETURN_CODE"))&lt;/PRE&gt;&lt;BR /&gt;This line of code can be used to retreive the exit status from a child job.</description>
      <pubDate>Sat, 05 Feb 2011 10:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-get-the-exit-code-returned-by-a-subjob-in-a-Run-If/m-p/2266861#M45945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-05T10:47:48Z</dc:date>
    </item>
  </channel>
</rss>

