<?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: How to control tJava sequence with an IF in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315728#M86354</link>
    <description>Hello&amp;nbsp;
&lt;BR /&gt;Why do you use both OncomponentError and runIf to trigger the subjob starting from Descarg HTML? I don't understand your business logic well, would you please upload a full image of your job?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
    <pubDate>Mon, 23 Jan 2017 03:34:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-23T03:34:47Z</dc:date>
    <item>
      <title>How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315724#M86350</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm using TOS DI 6.3.0, and I have this situation:&lt;BR /&gt;- I have an object as a context variable. This object has a 'status' variable.&lt;BR /&gt;- I use a tJava to instance this object, do some checks that can change the status variable.&lt;BR /&gt;- This tJava is connected to a tDie with an IF link (status code ERROR), and connected to another component also with an IF link (status code OK)&lt;BR /&gt;- After that, if everithing is OK, I have a tJavaRow that can change (or not) the status variable&lt;BR /&gt;So my problem is that my tJava can enter to both IF in a single execution (please see the picture attached). I think it's because the status variable is OK at the first time, but is changed by tJavaRow component. The weird thing is tJavaRow is not executed after tJava.. and aparently the IF sequence is not being respected.&lt;BR /&gt;So, how can I force my tJava to be executed completly before the execution of the next component, and also validate my status variable?&lt;BR /&gt;&lt;IMG src="https://community.talend.com/legacyfs/online/390507/blob_20170116-0449.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 12:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315724#M86350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-16T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315725#M86351</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;How is the condition defined for each runIf lik? Can you show us the expression code? 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 17 Jan 2017 09:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315725#M86351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-17T09:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315726#M86352</link>
      <description>&lt;BLOCKQUOTE&gt;
  shong wrote: 
 &lt;BR /&gt;Hi&amp;nbsp; 
 &lt;BR /&gt;How is the condition defined for each runIf lik? Can you show us the expression code? 
 &lt;BR /&gt; 
 &lt;BR /&gt;Regards 
 &lt;BR /&gt;Shong 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Shong, thanks for reply. 
&lt;BR /&gt;Here's the conditions: 
&lt;BR /&gt;if (order:1) --&amp;gt;&amp;nbsp;((routines.Procesos)context.oProceso).statusGlobal != 3 
&lt;BR /&gt;if (order:2) --&amp;gt; ((routines.Procesos)context.oProceso).statusGlobal == 3 
&lt;BR /&gt;statusGlobal is set with "1" by default, but can be changed in the tJava or tJavaRow.&amp;nbsp;</description>
      <pubDate>Tue, 17 Jan 2017 11:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315726#M86352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-17T11:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315727#M86353</link>
      <description>Any clue?</description>
      <pubDate>Fri, 20 Jan 2017 12:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315727#M86353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-20T12:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315728#M86354</link>
      <description>Hello&amp;nbsp;
&lt;BR /&gt;Why do you use both OncomponentError and runIf to trigger the subjob starting from Descarg HTML? I don't understand your business logic well, would you please upload a full image of your job?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 23 Jan 2017 03:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315728#M86354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-23T03:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315729#M86355</link>
      <description>Hi Shong,&amp;nbsp; 
&lt;BR /&gt;I'm been working on this Job, so now it's not the same&amp;nbsp; 
&lt;IMG id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://yutwg22796.i.lithium.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt; 
&lt;BR /&gt;The 'issue' stoped when I add more components. 
&lt;BR /&gt;To answer your question, "Descarga HTML" is linked to a tDie with that OnComponentError. The Job start with "Valida Parámetros" component.</description>
      <pubDate>Mon, 23 Jan 2017 12:08:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315729#M86355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-23T12:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315730#M86356</link>
      <description>&lt;PRE&gt;The Job start with "Valida Parámetros" component.&lt;/PRE&gt;
&lt;BR /&gt;As you said, the job starts with tJava component, this component validate the status, the default status is 1, so, it executes the subjobs linked by order1. I don't see a loop component in your job, so the job is always executed one time.
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 24 Jan 2017 03:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315730#M86356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T03:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to control tJava sequence with an IF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315731#M86357</link>
      <description>Hi Shong,&amp;nbsp;
&lt;BR /&gt;Thanks for answering. But I still do not understand why if (order: 1) and if (order: 2) can be false in the same execution (with no loops) if they are exclusive.</description>
      <pubDate>Tue, 24 Jan 2017 14:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-control-tJava-sequence-with-an-IF/m-p/2315731#M86357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T14:30:58Z</dc:date>
    </item>
  </channel>
</rss>

