<?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: put a java variable inside the global map in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289278#M62675</link>
    <description>thanks now it works</description>
    <pubDate>Wed, 27 Apr 2016 12:47:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-27T12:47:23Z</dc:date>
    <item>
      <title>put a java variable inside the global map</title>
      <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289273#M62670</link>
      <description>Hello, 
&lt;BR /&gt;I am using an external java libary in talend esb. Inside a ctalendjob I put the variable into the globalmap. 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME0G.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154281i04C9003F18F9A602/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME0G.jpg" alt="0683p000009ME0G.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Inside the tjava I put the java variable inside the global map: 
&lt;BR /&gt; 
&lt;PRE&gt;globalMap.put("javaobject", javaobject);&lt;/PRE&gt; 
&lt;BR /&gt;I call this job in the route: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDaB.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143551iB43F1C0F63E7CE0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDaB.jpg" alt="0683p000009MDaB.jpg" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In an other ctalendjob I want to use this object. But the globalmap ist empty. I use a delay of 10s for waiting the object is created and put it inside the map. Maybe there is a better solution.&amp;nbsp; 
&lt;BR /&gt;Hope someone can help me. 
&lt;BR /&gt;Greets Benjamin</description>
      <pubDate>Sat, 16 Nov 2024 10:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289273#M62670</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: put a java variable inside the global map</title>
      <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289274#M62671</link>
      <description>You can not use the globalMap from one Job in another by default (the map is global to the Jobs, not to the world )&lt;BR /&gt;There are some articles/posts here around, how to pass a globalmap to another &amp;nbsp;Job, you Need to look what helps you best&lt;BR /&gt;You could also pass your Java-object as an Object through the context of your subjob if its one way.&lt;BR /&gt;Hth&lt;BR /&gt;dj</description>
      <pubDate>Tue, 26 Apr 2016 16:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289274#M62671</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T16:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: put a java variable inside the global map</title>
      <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289275#M62672</link>
      <description>Hello Benjamin,&lt;BR /&gt;You want to get the object that you put in the talend job from the route?&lt;BR /&gt;Lin LIN&lt;BR /&gt;Consultant BI/Talend&lt;BR /&gt;Synaltic Group</description>
      <pubDate>Tue, 26 Apr 2016 16:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289275#M62672</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: put a java variable inside the global map</title>
      <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289276#M62673</link>
      <description>I want to read files from a directory and start if new files received. For that I use cfile. The files have to parse with a custom parser (I have wrote in java), after parsing I want to delete the files and wait for new files receive. For that I create a java object from the parser (singleton). How can I use that object in an other job of the routine?&amp;nbsp;</description>
      <pubDate>Tue, 26 Apr 2016 16:40:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289276#M62673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T16:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: put a java variable inside the global map</title>
      <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289277#M62674</link>
      <description>You need to pass the value of your globalMap variable out to the route via the tRouteOutput_3. Create and output "Header" and assign it the value of your globalMap. Then in your route, you can interrogate this by acquiring that header. It will be held as an Object so you will need to cast it to the correct type. If you want to simply pass it to the next cTalendJob, then on your tRouteInput for that job, simply retrieve that header (as an Object) and cast it (maybe using a tJavaRow) to the type you want.&amp;nbsp;</description>
      <pubDate>Tue, 26 Apr 2016 17:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289277#M62674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-26T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: put a java variable inside the global map</title>
      <link>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289278#M62675</link>
      <description>thanks now it works</description>
      <pubDate>Wed, 27 Apr 2016 12:47:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/put-a-java-variable-inside-the-global-map/m-p/2289278#M62675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-27T12:47:23Z</dc:date>
    </item>
  </channel>
</rss>

