<?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] tDie after RunIf condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365174#M128809</link>
    <description>Hi, 
&lt;BR /&gt;I'm using TOS 5.0.1 with AS400 SGBD. 
&lt;BR /&gt;I would like to create a parent job to transmit by integer variable (context) asked "STOP_TO_ERROR" an argument to child job. 
&lt;BR /&gt;My child job execute an tAS400Row and testing the variable "STOP_TO_ERROR" and if equals 1 then execute tDie component to stop process: 
&lt;BR /&gt;tAS400Row --&amp;gt; RunIf --&amp;gt; tDie 
&lt;BR /&gt;If condition : ((Integer)globalMap.get("STOP_SI_ERREUR")).equals(1) 
&lt;BR /&gt;When I'm executing the parent job I have an error message : 
&lt;BR /&gt; connecting to socket on port 3569 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tAS400Row_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at shlmr.alim_maj_statut_0_1.alim_maj_statut.tAS400Row_1Process(alim_maj_statut.java:895) 
&lt;BR /&gt; at shlmr.alim_maj_statut_0_1.alim_maj_statut.runJobInTOS(alim_maj_statut.java:3625) 
&lt;BR /&gt; at shlmr.alim_maj_statut_0_1.alim_maj_statut.runJob(alim_maj_statut.java:3312) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tRunJob_3Process(aaa.java:1246) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tAS400Input_1Process(aaa.java:1116) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.runJobInTOS(aaa.java:3997) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.main(aaa.java:3646) 
&lt;BR /&gt;Exception in component tRunJob_3 
&lt;BR /&gt;java.lang.RuntimeException: Child job running failed 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tRunJob_3Process(aaa.java:1264) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tAS400Input_1Process(aaa.java:1116) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.runJobInTOS(aaa.java:3997) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.main(aaa.java:3646) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;I think i should be used tJava or tJavaRow component... 
&lt;BR /&gt;How to create RunIf condition to testing my parameter after execute the tAS400Row ? 
&lt;BR /&gt;See a screenshot. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Olivier</description>
    <pubDate>Mon, 14 May 2012 14:04:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-14T14:04:51Z</dc:date>
    <item>
      <title>[resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365174#M128809</link>
      <description>Hi, 
&lt;BR /&gt;I'm using TOS 5.0.1 with AS400 SGBD. 
&lt;BR /&gt;I would like to create a parent job to transmit by integer variable (context) asked "STOP_TO_ERROR" an argument to child job. 
&lt;BR /&gt;My child job execute an tAS400Row and testing the variable "STOP_TO_ERROR" and if equals 1 then execute tDie component to stop process: 
&lt;BR /&gt;tAS400Row --&amp;gt; RunIf --&amp;gt; tDie 
&lt;BR /&gt;If condition : ((Integer)globalMap.get("STOP_SI_ERREUR")).equals(1) 
&lt;BR /&gt;When I'm executing the parent job I have an error message : 
&lt;BR /&gt; connecting to socket on port 3569 
&lt;BR /&gt; connected 
&lt;BR /&gt;Exception in component tAS400Row_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at shlmr.alim_maj_statut_0_1.alim_maj_statut.tAS400Row_1Process(alim_maj_statut.java:895) 
&lt;BR /&gt; at shlmr.alim_maj_statut_0_1.alim_maj_statut.runJobInTOS(alim_maj_statut.java:3625) 
&lt;BR /&gt; at shlmr.alim_maj_statut_0_1.alim_maj_statut.runJob(alim_maj_statut.java:3312) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tRunJob_3Process(aaa.java:1246) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tAS400Input_1Process(aaa.java:1116) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.runJobInTOS(aaa.java:3997) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.main(aaa.java:3646) 
&lt;BR /&gt;Exception in component tRunJob_3 
&lt;BR /&gt;java.lang.RuntimeException: Child job running failed 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tRunJob_3Process(aaa.java:1264) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.tAS400Input_1Process(aaa.java:1116) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.runJobInTOS(aaa.java:3997) 
&lt;BR /&gt; at shlmr.aaa_0_1.aaa.main(aaa.java:3646) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;I think i should be used tJava or tJavaRow component... 
&lt;BR /&gt;How to create RunIf condition to testing my parameter after execute the tAS400Row ? 
&lt;BR /&gt;See a screenshot. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Olivier</description>
      <pubDate>Mon, 14 May 2012 14:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365174#M128809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-14T14:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365175#M128810</link>
      <description>Hi Olivier
&lt;BR /&gt;According to your description, now the problem is how to pass the value of "STOP_TO_ERROR" from main job to child job, for which you need to configure 'Context param' on tRunjob.
&lt;BR /&gt;Here is a previous topic 21855.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 15 May 2012 04:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365175#M128810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T04:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365176#M128811</link>
      <description>Hi Pedro,
&lt;BR /&gt;It's ok for this part.
&lt;BR /&gt;My problem is to testing my variable after executing tAS00Row (from my screenshot).
&lt;BR /&gt;If I using Run If condition after tAS400Row I have this error
&lt;BR /&gt;. I don't know if it's an obligation to use tJava component for loading «STOP_TO_ERROR» before testing this parameter on If condition.
&lt;BR /&gt;In another job, I'm using this condition after tJavaRow :
&lt;BR /&gt;tAS400Input --main--&amp;gt; tJavaRow --If--&amp;gt;tRunJob
&lt;BR /&gt;And it's ok, I can replicate the result of tAS400Input on my variable by the tJavaRow and testing my variable on If condition...
&lt;BR /&gt;But, how to create this job :
&lt;BR /&gt;tAS400Row --?--&amp;gt; tDie.
&lt;BR /&gt;tDie not depending of tAs400Row, is executing after this.
&lt;BR /&gt;tDie depending of my ParentParameter «STOP_TO_ERROR».
&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 15 May 2012 05:17:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365176#M128811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T05:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365177#M128812</link>
      <description>Hi 
&lt;BR /&gt;Please show me the screenshot about tRunjob in your main job. 
&lt;BR /&gt;The reason you got NPE exception is that global value "STOP_TO_ERROR" wasn't passed from main job to child job. 
&lt;BR /&gt;Solution: Add a context variable called new1 in the child job. 
&lt;BR /&gt; Configure tRunJob component of the main job as the following image. 
&lt;BR /&gt; Modify the expression of Run-if trigger in the child job with context.new1. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 15 May 2012 06:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365177#M128812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T06:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365178#M128813</link>
      <description>See my screenshot from parentjob and childrenjob. 
&lt;BR /&gt;To resum, I'll would like to stop process (all jobs) when asking childjob and "STOP_TO_ERROR" parameters = 1. 
&lt;BR /&gt;Parent Job in order process : 
&lt;BR /&gt;ParentSearch.jpg 
&lt;BR /&gt;JavaRowParent.jpg 
&lt;BR /&gt;If2Parent.jpg 
&lt;BR /&gt;ParentJob.jpg 
&lt;BR /&gt;If1Parent.jpg 
&lt;BR /&gt;ParentJobOK.jpg 
&lt;BR /&gt; 
&lt;BR /&gt;Children Job in order : 
&lt;BR /&gt;contextchildjob.jpg 
&lt;BR /&gt;ChildJobUpdate.jpg 
&lt;BR /&gt;IfChildJob.jpg</description>
      <pubDate>Tue, 15 May 2012 06:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365178#M128813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T06:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365179#M128814</link>
      <description>Hi
&lt;BR /&gt;Here is the expression of Run-if trigger in this child job.
&lt;BR /&gt;
&lt;PRE&gt;context.STOP_SI_ERREUR==1&lt;/PRE&gt;
&lt;BR /&gt;I think you don't understand how to pass value with tRunjob.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 15 May 2012 07:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365179#M128814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T07:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tDie after RunIf condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365180#M128815</link>
      <description>Ok... 
&lt;BR /&gt;Many thanks for your reply 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Olivier</description>
      <pubDate>Tue, 15 May 2012 07:17:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tDie-after-RunIf-condition/m-p/2365180#M128815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-15T07:17:02Z</dc:date>
    </item>
  </channel>
</rss>

