<?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: good way to combine multiple contexts? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/good-way-to-combine-multiple-contexts/m-p/2315458#M86111</link>
    <description>I know this post started a while back, but I would also like to merge contexts groups. &lt;BR /&gt;For example if I set-up 2 db's on my dev environment and save each as a context these end up in different context groups if I try to save to the same context group I get an error.&lt;BR /&gt;So I now have 2 context groups that appear to not to talk to each other as if a context within that group is renamed to the same name i.e.&lt;BR /&gt;Dev, UAT, Prod.&lt;BR /&gt;I then get 2 of these values appearing in the run job context selector...&lt;BR /&gt;I'm I doing something fundamentally wrong, is a context group merge possibe, or is this a new feture request?</description>
    <pubDate>Tue, 26 Nov 2013 15:49:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-26T15:49:32Z</dc:date>
    <item>
      <title>good way to combine multiple contexts?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/good-way-to-combine-multiple-contexts/m-p/2315457#M86110</link>
      <description>Problem: I'd like to load and combine multiple contexts of different types in Talend 
&lt;BR /&gt; 
&lt;BR /&gt;I have various contexts defined such as evnContext, runContext, clientContext. 
&lt;BR /&gt;For example, suppose i have 4 different clients (A, B, C, D) and 4 different run types (small, medium, large, huge). 
&lt;BR /&gt;These context settings are independent. To configure a single context for each possibility would require 16 contexts. 
&lt;BR /&gt;Is there a "nice" way to combine them in Talend? 
&lt;BR /&gt;In the studio, we can create Contexts. I would create a separate context for each of the above and call these my context_types. Then for each context type, I can configure different instances. Finally, i would need a MetaContext whose fields would be the context types and whose values would be the instances 
&lt;BR /&gt;MetaContext metaconf1 metaconf2 
&lt;BR /&gt;envContext Production_Mac Development_Linux 
&lt;BR /&gt;runContext small huge 
&lt;BR /&gt;clientContext "Spaghetti Soup" "KimJungUn" 
&lt;BR /&gt;Now i can do repeated runs every day for a month for my metaconfs, or change/add a new metaconf as needed. 
&lt;BR /&gt;--------------------------- 
&lt;BR /&gt;I have considered joining the sub-contexts into a complete context with something like: 
&lt;BR /&gt;## stone soup approach - add them all and avoid name collisions by convnetion 
&lt;BR /&gt;for context_type in context_types 
&lt;BR /&gt; tLoadContext(getInstanceName(metaconf, context_type) 
&lt;BR /&gt; globalMap.putAll(context) 
&lt;BR /&gt;since globalMap is a java.util.Map() 
&lt;BR /&gt;## or name-mangling approach 
&lt;BR /&gt;As above but so that context.var1 in globalMap(context1) becomes context.context1_var1 . 
&lt;BR /&gt;It would be nice if Talend had some context merge tool, or if some simple components could do the job. So i though i'd ask here first before coding it up. Or see if anyone could suggest a better approach. 
&lt;BR /&gt;thanks, 
&lt;BR /&gt;kesten</description>
      <pubDate>Tue, 05 Feb 2013 19:20:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/good-way-to-combine-multiple-contexts/m-p/2315457#M86110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-05T19:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: good way to combine multiple contexts?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/good-way-to-combine-multiple-contexts/m-p/2315458#M86111</link>
      <description>I know this post started a while back, but I would also like to merge contexts groups. &lt;BR /&gt;For example if I set-up 2 db's on my dev environment and save each as a context these end up in different context groups if I try to save to the same context group I get an error.&lt;BR /&gt;So I now have 2 context groups that appear to not to talk to each other as if a context within that group is renamed to the same name i.e.&lt;BR /&gt;Dev, UAT, Prod.&lt;BR /&gt;I then get 2 of these values appearing in the run job context selector...&lt;BR /&gt;I'm I doing something fundamentally wrong, is a context group merge possibe, or is this a new feture request?</description>
      <pubDate>Tue, 26 Nov 2013 15:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/good-way-to-combine-multiple-contexts/m-p/2315458#M86111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-26T15:49:32Z</dc:date>
    </item>
  </channel>
</rss>

