<?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: Compare values returned by subjobs and execute another. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330898#M99936</link>
    <description>&lt;P&gt;I've modified the job because globalmap variables were'nt well assigned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2018-03-23 19_24_24-Talend Open Studio for Data Integration (6.5.1.20180116_1512) _ Local_Project (C.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtC2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146786iAECECB2C1A16AAA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtC2.png" alt="0683p000009LtC2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The component tJava_4 print the variables as shown above in the execution tab.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Variables are equals but&amp;nbsp; the "not" condition is always played.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Mar 2018 18:31:16 GMT</pubDate>
    <dc:creator>jcpreaux</dc:creator>
    <dc:date>2018-03-23T18:31:16Z</dc:date>
    <item>
      <title>Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330892#M99930</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've 2 subjobs (Subjob #1 &amp;amp; #2) whom return values (put in the globalmap) and i want to execute another subjob (Subjob #3) if these values are equals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'v tried with the "if" trigger but the third subjob is always played even if values aren't equals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----&lt;/P&gt;
&lt;P&gt;# Subjob #1 : Sales query&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;tMysqlInput_1 ----- tMap_1 ------ tFileOutputDelimited_1 (myFile.csv)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;tAggregateRow_1 ----- tJava_1 (globalMap.put("CA_Ventes",row4.SUM)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;# Subjob #2 : Statistics query&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;tMysqlInput_2 ----- tJava_2 (globalMap.put("CA_Stats",row5.SUM_MONTANT_LIVRE_)&lt;BR /&gt;&lt;BR /&gt;# Subjob #3 : (globalMap.get("CA_Stats") == globalMap.get("CA_Ventes"))? put FTP : Die and call&lt;/P&gt;
&lt;P&gt;------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS : i use TOS for Data integration v6.5.1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JCP&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330892#M99930</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2018-03-23T16:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330893#M99931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What are you trying to do in subjob3?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 16:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330893#M99931</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-03-23T16:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330894#M99932</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The subjob #3 puts the file generated by subjob#1on an FTP server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JCP.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 17:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330894#M99932</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2018-03-23T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330895#M99933</link>
      <description>&lt;P&gt;The looks like it should be OK. Can you post a screenshot please and also show the RunIf condition? It might also be interesting to see how you set the globalMap values.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 17:08:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330895#M99933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-23T17:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330896#M99934</link>
      <description>&lt;P&gt;The job :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2018-03-23 18_12_30-Talend Open Studio for Data Integration (6.5.1.20180116_1512) _ Local_Project (C.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtBx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130338iF43954742DE6133B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtBx.png" alt="0683p000009LtBx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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; 
&lt;P&gt;The second id condition : globalMap.get("CA_Stats") != globalMap.get("CA_Ventes")&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The subjob #3 isn't yet designed but i tried with Sendmail and Die components.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Components tJava_2 and tJava_3 put values in the globalmap :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;#2 :&lt;/P&gt; 
&lt;P&gt;globalMap.put("CA_Ventes",row2.SUM);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;#3 :&lt;/P&gt; 
&lt;P&gt;globalMap.put("CA_Stats",row3.SUM_MONTANT_LIVRE_);&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; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;JCP&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 17:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330896#M99934</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2018-03-23T17:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330897#M99935</link>
      <description>&lt;P&gt;can you please check globalMap assignment working properly ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Display global value before using in condition.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried the same and it's working.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GlobalDependency.PNG" style="width: 906px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lsp5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140234i40CB4968BF129471/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lsp5.png" alt="0683p000009Lsp5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 17:41:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330897#M99935</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-03-23T17:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330898#M99936</link>
      <description>&lt;P&gt;I've modified the job because globalmap variables were'nt well assigned.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2018-03-23 19_24_24-Talend Open Studio for Data Integration (6.5.1.20180116_1512) _ Local_Project (C.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtC2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146786iAECECB2C1A16AAA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtC2.png" alt="0683p000009LtC2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The component tJava_4 print the variables as shown above in the execution tab.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Variables are equals but&amp;nbsp; the "not" condition is always played.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 18:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330898#M99936</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2018-03-23T18:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330899#M99937</link>
      <description>&lt;P&gt;so issue resolved ? if yes please mark it as solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Mar 2018 18:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330899#M99937</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-03-23T18:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compare values returned by subjobs and execute another.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330900#M99938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem came from the way i compared my values in the if trigger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I replace :&lt;/P&gt;&lt;P&gt;globalMap.get("CA_Stats") == globalMap.get("CA_Ventes")&lt;/P&gt;&lt;P&gt;By :&lt;/P&gt;&lt;P&gt;((BigDecimal)globalMap.get("CA_Stats")).compareTo(((BigDecimal)globalMap.get("CA_Ventes"))) == 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JCP&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-values-returned-by-subjobs-and-execute-another/m-p/2330900#M99938</guid>
      <dc:creator>jcpreaux</dc:creator>
      <dc:date>2018-03-26T08:21:15Z</dc:date>
    </item>
  </channel>
</rss>

