<?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: Context Load from text file - Can't read the loaded variables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Context-Load-from-text-file-Can-t-read-the-loaded-variables/m-p/2301727#M73797</link>
    <description>So I saw the source code of another job with context variables and found that talend internally manages the context variables using the getProperty method. Used that information and it all worked fine.&lt;BR /&gt;&lt;BR /&gt;System.out.println("Value of var test_var read from context " + (String) context.getProperty("test_var"));&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Aug 2018 19:14:39 GMT</pubDate>
    <dc:creator>sushantV</dc:creator>
    <dc:date>2018-08-10T19:14:39Z</dc:date>
    <item>
      <title>Context Load from text file - Can't read the loaded variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Load-from-text-file-Can-t-read-the-loaded-variables/m-p/2301726#M73796</link>
      <description>&lt;P&gt;So I created this quick job and strangely, even after getting confirmation that the variables have been loaded, I can't seem to read the variables using context.&amp;lt;var_name&amp;gt;. What am I doing wrong?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The input file has just one variable 'temp_var' with value set to 'passed' (temp_var=passed). While loading the job, I also see the info in the talend log window (tContextLoad_2 set key "test_var" with value "passed"). Further, I can use the&amp;nbsp;context.containsKey("test_var") construct and it yields 'true' in the Java Node. But the moment I try to run the following command, it fails:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;System.out.println("Value of var test_var read from context " + context.test_var);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kindly help.&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="Screenshot from 2018-08-10 16-49-20.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzqx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141561i36987561B625421F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzqx.png" alt="0683p000009Lzqx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 17:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Load-from-text-file-Can-t-read-the-loaded-variables/m-p/2301726#M73796</guid>
      <dc:creator>sushantV</dc:creator>
      <dc:date>2018-08-10T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Context Load from text file - Can't read the loaded variables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Context-Load-from-text-file-Can-t-read-the-loaded-variables/m-p/2301727#M73797</link>
      <description>So I saw the source code of another job with context variables and found that talend internally manages the context variables using the getProperty method. Used that information and it all worked fine.&lt;BR /&gt;&lt;BR /&gt;System.out.println("Value of var test_var read from context " + (String) context.getProperty("test_var"));&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2018 19:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Context-Load-from-text-file-Can-t-read-the-loaded-variables/m-p/2301727#M73797</guid>
      <dc:creator>sushantV</dc:creator>
      <dc:date>2018-08-10T19:14:39Z</dc:date>
    </item>
  </channel>
</rss>

