<?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: tRunJob: Unable to pass Object parameter from parent to child job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281469#M55992</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKyWAAW"&gt;@sballa&lt;/A&gt;&amp;nbsp;, problem with the data type of&amp;nbsp;&lt;SPAN&gt;dashboard_map in subjob as string because of that it could not able to convert map to string.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 14:25:38 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2020-05-28T14:25:38Z</dc:date>
    <item>
      <title>tRunJob: Unable to pass Object parameter from parent to child job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281468#M55991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am encountering the following exception while passing HashMap as Object type parameter in tRunJob component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First, I created a HashMap and populated into globalMap as follows in a tJava component:&lt;/P&gt; 
&lt;P&gt;Map&amp;lt;String, Object&amp;gt; dashboardMap = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/P&gt; 
&lt;P&gt;globalMap.put("dashboardMap", dashboardMap);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then I use that HashMap as a parameter to tRunJob as follows:&lt;/P&gt; 
&lt;P&gt;"Use Dynamic Job" OFF&lt;/P&gt; 
&lt;P&gt;"Use an independent process to run subjob" OFF&lt;/P&gt; 
&lt;P&gt;"Die on child error" ON&lt;/P&gt; 
&lt;P&gt;"Transmit whole context" ON&lt;/P&gt; 
&lt;P&gt;Context Param:&lt;/P&gt; 
&lt;P&gt;Parameters&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Values&lt;/P&gt; 
&lt;P&gt;dashboard_map&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;((java.util.Map)globalMap.get("dashboardMap"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Exception seen:&lt;/P&gt; 
&lt;P&gt;java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;TOS DI version 7.2.1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 13:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281468#M55991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T13:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob: Unable to pass Object parameter from parent to child job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281469#M55992</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKyWAAW"&gt;@sballa&lt;/A&gt;&amp;nbsp;, problem with the data type of&amp;nbsp;&lt;SPAN&gt;dashboard_map in subjob as string because of that it could not able to convert map to string.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 14:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281469#M55992</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-05-28T14:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob: Unable to pass Object parameter from parent to child job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281470#M55993</link>
      <description>&lt;P&gt;If you observed, I am passing the dashboard_map as an Object type parameter to tRunJob. So, converting is back to Map in that job must not raise the ClassCastException. All I am trying to do here is pass a Map and use it in the child job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the child job, I do:&lt;BR /&gt;(java.util.Map)context.dashboard_map to get the map from the context and use it. And here is where the&amp;nbsp;ClassCastException is reported.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 14:30:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281470#M55993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T14:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: tRunJob: Unable to pass Object parameter from parent to child job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281471#M55994</link>
      <description>&lt;P&gt;Passing Object type Context parameters from parent to child in tRunJob component used to work perfectly fine in prior TOS DI versions. Can anyone please help explain what changed in TOS DI 7.2.1 and how it can be addressed?&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 19:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRunJob-Unable-to-pass-Object-parameter-from-parent-to-child-job/m-p/2281471#M55994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-28T19:14:09Z</dc:date>
    </item>
  </channel>
</rss>

