<?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 accessing globalMap inside a custom routine in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/accessing-globalMap-inside-a-custom-routine/m-p/2347729#M114942</link>
    <description>A colleague of mine said that this was possible, by passing in the (entire) globalMap to the routine.&lt;BR /&gt;Does anyone know the best syntax to pass in, and receiving routine example to show how to get and put, once in the routine?&lt;BR /&gt;Thanks.</description>
    <pubDate>Sat, 16 Nov 2024 12:41:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:41:08Z</dc:date>
    <item>
      <title>accessing globalMap inside a custom routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/accessing-globalMap-inside-a-custom-routine/m-p/2347729#M114942</link>
      <description>A colleague of mine said that this was possible, by passing in the (entire) globalMap to the routine.&lt;BR /&gt;Does anyone know the best syntax to pass in, and receiving routine example to show how to get and put, once in the routine?&lt;BR /&gt;Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 12:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/accessing-globalMap-inside-a-custom-routine/m-p/2347729#M114942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: accessing globalMap inside a custom routine</title>
      <link>https://community.qlik.com/t5/Talend-Studio/accessing-globalMap-inside-a-custom-routine/m-p/2347730#M114943</link>
      <description>Hi
&lt;BR /&gt;Yes, it is possible to pass the global variable globalMap to custom routine. For example:
&lt;BR /&gt;Here is my custom routine, 
&lt;BR /&gt;
&lt;PRE&gt;public class myroutine {&lt;BR /&gt;    &lt;BR /&gt;	public static void passGlobalVariableToRoutine(java.util.Map&amp;lt;String, Object&amp;gt; globalMap) {&lt;BR /&gt;		globalMap.put("key", "shong");&lt;BR /&gt;		&lt;BR /&gt;	}&lt;BR /&gt;}&lt;/PRE&gt;
&lt;BR /&gt;code on tJava:
&lt;BR /&gt;
&lt;PRE&gt;myroutine.passGlobalVariableToRoutine(globalMap);&lt;BR /&gt;String s=(String)globalMap.get("key");&lt;BR /&gt;System.out.println(s);&lt;/PRE&gt;
&lt;BR /&gt;output on console:
&lt;BR /&gt;
&lt;PRE&gt;Starting job test at 09:30 15/09/2011.&lt;BR /&gt; connecting to socket on port 3935&lt;BR /&gt; connected&lt;BR /&gt;shong&lt;BR /&gt; disconnected&lt;BR /&gt;Job test ended at 09:30 15/09/2011. &lt;/PRE&gt;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 15 Sep 2011 02:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/accessing-globalMap-inside-a-custom-routine/m-p/2347730#M114943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-15T02:33:51Z</dc:date>
    </item>
  </channel>
</rss>

