<?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: [resolved] How to pass data through a job ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219353#M14193</link>
    <description>Hi &amp;nbsp; 
&lt;BR /&gt;If I understand your requirement well, you just need to add a tFlowToIterate between&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Parse device_no and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Get interfaces to iterate each device no. eg:&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;...&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Parse device_no--row16--tFlowToIterate--iterate--&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Get interfaces--main--parse interfaces--main--tMap--tLogRow&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;change the URL in step 3 to:&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;3) "Get interfaces" Query :&amp;nbsp;" + (String)globalMap.get("row16.device_no")&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;//Assuming the data type of device_no is string, if it is integer type in your case, change it to&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"Get interfaces" Query :&amp;nbsp;" + (Integer)globalMap.get("row16.device_no")&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;on tMap, add a new column called device_no in the output table, and set its expression as: 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(String)globalMap.get("row16.device_no")&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Tue, 29 Sep 2015 02:07:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-29T02:07:55Z</dc:date>
    <item>
      <title>[resolved] How to pass data through a job ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219350#M14190</link>
      <description>Hello, 
&lt;BR /&gt;I'm new to Talend and I'm trying to achieve my first job for a network project. 
&lt;BR /&gt;Unfortunately I'm stuck at the moment because of my lack of knowledge of the software and its components. 
&lt;BR /&gt; 
&lt;B&gt;Explanations&lt;/B&gt; 
&lt;BR /&gt;I'm collecting data from a network management console API (Cisco Prime Infrastructure) and I need to proceed with 4 API query to get all the necessary data : device id, ip address, interfaces and their descriptions. When the job has gathered everything together, the data are sorted and a last API query is made to the management console. 
&lt;BR /&gt;But the problem is that I don't know how to "link" each rows to the others through the different API calls. I made a pattern to make it clearer : 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;By now, I know how to get the data and parse them in order to get what I want from the XML files but I can't find how to get the data to "follow" through the job and be linked together. 
&lt;BR /&gt;For each device id should be linked an ip address, a list of its interfaces, the intefaces' descriptions... But how to proceed ? 
&lt;BR /&gt;Thank you. 
&lt;BR /&gt;Cardiganup.</description>
      <pubDate>Sat, 16 Nov 2024 11:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219350#M14190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass data through a job ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219351#M14191</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;tRestClient requires a Document as input request or returns a Document as response, so you can use tXMLMap to extract data from the response or build the Document as input request. For example:
&lt;BR /&gt;tRestClient1--tXMLMap--tRestClient2--tXMLMap...
&lt;BR /&gt;Refer to the component manual and learn tXMLMap component.&amp;nbsp;
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 28 Sep 2015 09:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219351#M14191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-28T09:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass data through a job ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219352#M14192</link>
      <description>Hi, 
&lt;BR /&gt;Thanks for your answer Shong. 
&lt;BR /&gt;I managed to parse the XML responses with a tExtractXMLFields, I can't get tXMLMap to work. 
&lt;BR /&gt;Here's how I did it : 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;1) "Get devices" Query :&amp;nbsp;" 
&lt;BR /&gt;2) "Parse device_no" parsing the tRESTClient response. 
&lt;BR /&gt;3) "Get interfaces" Query :&amp;nbsp;" + row16.device_no 
&lt;BR /&gt;4) "Parse interface" parsing the tRESTClient response. 
&lt;BR /&gt;I get the results I expect BUT I don't know how to link the devices' ID and the interfaces, how to get that : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;So to each device id is linked its interfaces, ip, ... Is there a way to make like individual arrays to store the data for each device along the job? 
&lt;BR /&gt;Thank you. 
&lt;BR /&gt;Cardiganup.</description>
      <pubDate>Mon, 28 Sep 2015 12:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219352#M14192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-28T12:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass data through a job ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219353#M14193</link>
      <description>Hi &amp;nbsp; 
&lt;BR /&gt;If I understand your requirement well, you just need to add a tFlowToIterate between&amp;nbsp; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Parse device_no and&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Get interfaces to iterate each device no. eg:&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;...&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Parse device_no--row16--tFlowToIterate--iterate--&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Get interfaces--main--parse interfaces--main--tMap--tLogRow&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;change the URL in step 3 to:&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;3) "Get interfaces" Query :&amp;nbsp;" + (String)globalMap.get("row16.device_no")&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;//Assuming the data type of device_no is string, if it is integer type in your case, change it to&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;"Get interfaces" Query :&amp;nbsp;" + (Integer)globalMap.get("row16.device_no")&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;on tMap, add a new column called device_no in the output table, and set its expression as: 
&lt;BR /&gt; 
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;(String)globalMap.get("row16.device_no")&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 29 Sep 2015 02:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219353#M14193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T02:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass data through a job ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219354#M14194</link>
      <description>Hi Shong, 
&lt;BR /&gt;Many thanks ! I managed to make the job I wanted 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Unfortunately, it's not completely done yet because I'm facing another issue... 
&lt;BR /&gt;I tried to switch from my test local environnement to the "real" production environnement I'm supposed to work with, but the tRESTClient can't connect to the server. Let me explain : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;B&gt;Server&amp;nbsp;: &lt;/B&gt;Set on the&amp;nbsp;Local Area Network, access via HTTPS, self-signed certificate. 
&lt;BR /&gt; 
&lt;B&gt;Job :&lt;/B&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;I added the certificate to the "cacerts" Java file and I set its directory in the tSetKeyStore. 
&lt;BR /&gt;The tRESTClient tries to connect to a url that looks like : https://&amp;lt;certificate-attached-domain&amp;gt;. 
&lt;BR /&gt;I checked "Use authentification" with a "Basic HTTP" type and filled in the credentials. 
&lt;BR /&gt;But it's not working : 
&lt;BR /&gt; 
&lt;PRE&gt; connecting to socket on port 3530&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tRESTClient_1&lt;BR /&gt; disconnected&lt;BR /&gt;javax.ws.rs.NotAcceptableException: HTTP 406 Not Acceptable&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:495)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:897)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:428)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:611)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.tRESTClient_1Process(Cisco_Prime.java:656)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.tSetKeystore_1Process(Cisco_Prime.java:389)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.runJobInTOS(Cisco_Prime.java:929)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.main(Cisco_Prime.java:774)&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;And if I check "Follow redirects" and allow redirections to different hosts, here's what I get : 
&lt;BR /&gt; 
&lt;PRE&gt; connecting to socket on port 3349&lt;BR /&gt; connected&lt;BR /&gt;: org.apache.cxf.transport.http.HTTPConduit - WWW-Authenticate response header is not set&lt;BR /&gt;Exception in component tRESTClient_1&lt;BR /&gt;javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.AbstractClient.convertToWebApplicationException(AbstractClient.java:495)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:897)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:865)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:428)&lt;BR /&gt;	at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:611)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.tRESTClient_1Process(Cisco_Prime.java:662)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.tSetKeystore_1Process(Cisco_Prime.java:389)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.runJobInTOS(Cisco_Prime.java:935)&lt;BR /&gt;	at ciscoprime.cisco_prime_0_1.Cisco_Prime.main(Cisco_Prime.java:780)&lt;BR /&gt; disconnected&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;I also tried to pass the authentification credentials through a Authorization header but it is not working as well. 
&lt;BR /&gt;Have you ever seen this behavior with a tRESTClient? 
&lt;BR /&gt;PS: Prior to using "tRESTClient", I was working with "tREST" components and it was going well. 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt;Cardiganup.</description>
      <pubDate>Tue, 29 Sep 2015 10:10:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219354#M14194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-29T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to pass data through a job ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219355#M14195</link>
      <description>I solved the problem ! 
&lt;BR /&gt;Apparently, the server didn't like to be forced to send XML back so I put "Any" in the type list : 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;Cardiganup.</description>
      <pubDate>Wed, 30 Sep 2015 08:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-pass-data-through-a-job/m-p/2219355#M14195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-30T08:29:23Z</dc:date>
    </item>
  </channel>
</rss>

