<?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: Parameterizing job based on token drops from different databases in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207440#M7087</link>
    <description>&lt;P&gt;Hi &lt;BR /&gt;Using context variables to configure the DB parameter, assign corresponding value to context variable based on the individual token drops, I don't know how the token drops comes in your job, just give an simple example to explain the logic process:&lt;BR /&gt;tJava&lt;BR /&gt;|onsubjobok&lt;BR /&gt;tDBInput...&amp;gt;tDBoutput&lt;BR /&gt;&lt;BR /&gt;on tJava:&lt;BR /&gt;...balabalabala..get your token drops and analyse its value...&lt;BR /&gt;if(token.equals("Source1"){&lt;BR /&gt;context.host="host1";&lt;BR /&gt;context.database="database1";&lt;BR /&gt;..other context variables....&lt;BR /&gt;}else{&lt;BR /&gt;context.host="host2";&lt;BR /&gt;context.database="database2";&lt;BR /&gt;..other context variables....&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 02:55:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-11T02:55:56Z</dc:date>
    <item>
      <title>Parameterizing job based on token drops from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207439#M7086</link>
      <description>&lt;P&gt;I currently have two separate jobs that load data into the same destination database, but they come from two different sources - Source1 and Source2. Source1 and Source2 each have their own token drop. Both of these jobs have the same queries and grab from identically built tables.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to combine these two jobs into a single job that, based on the individual token drops, will pass the correct parameters into the job and pull from the correct source. So, if the token for Source2 drops, the job will need to run with Source2 connection information.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How would I set up and pass these parameters through the job?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TYIA!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 22:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207439#M7086</guid>
      <dc:creator>daniellesacks</dc:creator>
      <dc:date>2019-12-10T22:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterizing job based on token drops from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207440#M7087</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;Using context variables to configure the DB parameter, assign corresponding value to context variable based on the individual token drops, I don't know how the token drops comes in your job, just give an simple example to explain the logic process:&lt;BR /&gt;tJava&lt;BR /&gt;|onsubjobok&lt;BR /&gt;tDBInput...&amp;gt;tDBoutput&lt;BR /&gt;&lt;BR /&gt;on tJava:&lt;BR /&gt;...balabalabala..get your token drops and analyse its value...&lt;BR /&gt;if(token.equals("Source1"){&lt;BR /&gt;context.host="host1";&lt;BR /&gt;context.database="database1";&lt;BR /&gt;..other context variables....&lt;BR /&gt;}else{&lt;BR /&gt;context.host="host2";&lt;BR /&gt;context.database="database2";&lt;BR /&gt;..other context variables....&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 02:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207440#M7087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-11T02:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Parameterizing job based on token drops from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207441#M7088</link>
      <description>&lt;P&gt;Thanks, I will give this a go and get back to you.&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi&lt;BR /&gt;Using context variables to configure the DB parameter, assign corresponding value to context variable based on the individual token drops, I don't know how the token drops comes in your job, just give an simple example to explain the logic process:&lt;BR /&gt;tJava&lt;BR /&gt;|onsubjobok&lt;BR /&gt;tDBInput...&amp;gt;tDBoutput&lt;BR /&gt;&lt;BR /&gt;on tJava:&lt;BR /&gt;...balabalabala..get your token drops and analyse its value...&lt;BR /&gt;if(token.equals("Source1"){&lt;BR /&gt;context.host="host1";&lt;BR /&gt;context.database="database1";&lt;BR /&gt;..other context variables....&lt;BR /&gt;}else{&lt;BR /&gt;context.host="host2";&lt;BR /&gt;context.database="database2";&lt;BR /&gt;..other context variables....&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 16:49:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parameterizing-job-based-on-token-drops-from-different-databases/m-p/2207441#M7088</guid>
      <dc:creator>daniellesacks</dc:creator>
      <dc:date>2019-12-11T16:49:25Z</dc:date>
    </item>
  </channel>
</rss>

