<?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: conditional job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264197#M44121</link>
    <description>&lt;P&gt;OK, that looks like it should be working. The next thing to test is that the values are getting through. To do this, add some code to your tJava to print out the values of your context variables. For example,....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.out.println("Context named Test ="+context.Test);&lt;/PRE&gt;
&lt;P&gt;This will show whether the values are reaching your job.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 11:27:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-18T11:27:36Z</dc:date>
    <item>
      <title>conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264188#M44112</link>
      <description>&lt;P&gt;hi gays,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;i work for project automation migration data from database to another .&lt;/P&gt; 
&lt;P&gt;i create 3 job&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;job 1 for migration data from Sql server to oracle&lt;/P&gt; 
&lt;P&gt;job 2 for migration data from oracle to oracle&lt;/P&gt; 
&lt;P&gt;i want to create a job parent for test ;&lt;/P&gt; 
&lt;P&gt;if CMD line content the context param of job 1&amp;nbsp; then run job 1&lt;/P&gt; 
&lt;P&gt;else run job 2&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 09:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264188#M44112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-17T09:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264189#M44113</link>
      <description>&lt;P&gt;The tContextLoad needs to be used as shown in the example here ...(&lt;A href="https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/xH2TyYr_AmQnKwOYlqVCvA" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/jomWd_GKqAmTZviwG_oxHQ/xH2TyYr_AmQnKwOYlqVCvA&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are passing the value to your job using the CMD line, you do not need to worry about the tContextLoad. Simply use a tJava where your tContextLoad component is and link the RunIfs from there.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264189#M44113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-17T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264190#M44114</link>
      <description>&lt;P&gt;thinks for your response&lt;/P&gt;
&lt;P&gt;i can parse parameter database with tjava to child job ??&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264190#M44114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-17T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264191#M44115</link>
      <description>&lt;P&gt;The tJava is used simply as a dummy start component. You are really just relying on the RunIf links.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 10:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264191#M44115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-17T10:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264192#M44116</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i create the job with component tjava&amp;nbsp;&lt;/P&gt;&lt;P&gt;java Code in tjava:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;String contextsqlserver_Database;&lt;/P&gt;&lt;P&gt;if (contextsqlserver_Database != null){&lt;BR /&gt;globalMap.put("isNull", true);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;else {&lt;BR /&gt;globalMap.put("isNull", false);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to test if contextsqlserver_database is parsed in cmd line with value , the job executed is job 1&lt;/P&gt;&lt;P&gt;the condition in run if 1&lt;/P&gt;&lt;P&gt;(Boolean)globalMap.get("isNull")==true&lt;/P&gt;&lt;P&gt;else&amp;nbsp;&lt;/P&gt;&lt;P&gt;run job 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the issus :&amp;nbsp;contextsqlserver_database may not have been initialized&lt;/P&gt;&lt;P&gt;have you another solution&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvRn"&gt;jobgénirique.jpg&lt;/A&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264192#M44116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T09:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264193#M44117</link>
      <description>&lt;P&gt;How are you passing the context variable in the command-line? This seems to be the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your requirement for passing the context variable, how are you starting the job and can you use other functionality to do this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:42:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264193#M44117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264194#M44118</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;because i work for automation project and i want create a pipeline for migration data from&amp;nbsp;&lt;/P&gt;&lt;P&gt;sqlserver-------&amp;gt; oracle&lt;/P&gt;&lt;P&gt;oracle ------&amp;gt; oracle&amp;nbsp;&lt;/P&gt;&lt;P&gt;and i want to insert the command line in scriptshell&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 09:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264194#M44118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264195#M44119</link>
      <description>&lt;P&gt;I understand that, but you said that you were not sure the context variable value was being passed correctly. How are you passing the context variable in the command-line?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 10:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264195#M44119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264196#M44120</link>
      <description>&lt;P&gt;i build a job and run this commande :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;databaseTransfer_run --context_param contextsqlserver_Port=............. --context_param contextsqlserver_Database= ..... --context_param contextsqlserver_Schema=..... --context_param contextsqlserver_Password=....... --context_param contextsqlserver_Login=........ --context_param contextsqlserverr_Server=........ --context_param OracleConnection_Port=........ --context_param OracleConnection_Sid= ........... --context_param OracleConnection_Password= ........ --context_param OracleConnection_Login=............. --context_param OracleConnection_Server=.............--context_param OracleConnection_Schema= .................&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 10:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264196#M44120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T10:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264197#M44121</link>
      <description>&lt;P&gt;OK, that looks like it should be working. The next thing to test is that the values are getting through. To do this, add some code to your tJava to print out the values of your context variables. For example,....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.out.println("Context named Test ="+context.Test);&lt;/PRE&gt;
&lt;P&gt;This will show whether the values are reaching your job.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264197#M44121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264198#M44122</link>
      <description>&lt;P&gt;I'm an idiot. Sorry. I've just noticed your logic. The context variables are not going to be null. Try creating an empty String context variable. It won't be null, it will be treated like an empty String "". That is why your logic is not working.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264198#M44122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T11:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264199#M44123</link>
      <description>&lt;P&gt;i whrite this code in tjava:&lt;/P&gt;
&lt;P&gt;System.out.println("contextsqlserver_Database :"+context.contextsqlserver_Port);&lt;/P&gt;
&lt;P&gt;issus :&amp;nbsp;contextsqlserver_Port cannot be resolved or is not a field&lt;/P&gt;
&lt;P&gt;i try this solution ( screenshot attached) with tloadcontext&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and i insert the value of parameter in file.dat&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and same problem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtjS"&gt;Sans titre1.jpg&lt;/A&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:41:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264199#M44123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T11:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264200#M44124</link>
      <description>&lt;P&gt;That means that the context variable does not exist in the job. Check your context variables tab. A context variable must be configured in each job it is used.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264200#M44124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T11:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264201#M44125</link>
      <description>&lt;P&gt;ok thinks for your support&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 11:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264201#M44125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T11:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: conditional job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264202#M44126</link>
      <description>&lt;P&gt;No problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 12:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/conditional-job/m-p/2264202#M44126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T12:38:12Z</dc:date>
    </item>
  </channel>
</rss>

