<?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 [resolved] [tRESTRequest] REST API Mapping, Errors Handling/Wrong Calls in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285851#M59473</link>
    <description>&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Hi everyone,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;I want to have tRESTRequest components which have different output flow with the same URI pattern “/” :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendforge.org/forum/img/members/320841/tRESTRequest-Orders.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/img/members/320841/tRESTRequest-Orders.jpg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Each output flow have parameters like :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrders.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrders.jpg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrdersFromProvider.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrdersFromProvider.jpg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;But when i run the job only the first output flow (getOrders) is used, and he return me an error cause i don’t use the same parameters.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;It is possible to make different flow with the same URI Pattern if they don’t have same parameters (and parameters can’t be null) ? and when a parameter is null tRESTRequest use Wrong Call flow or another custom error flow ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Edit : I also have a date error, as you can see i have a date parameter (i supposed that is a java.util.Date). 
&lt;BR /&gt;to use it in my tOracleInput i tried : 
&lt;BR /&gt; 
&lt;PRE&gt;"SELECT * FROM X.Orders WHERE orderDate &amp;gt;= '" + (new java.sql.Date(((Date)globalMap.get("vGetOrders.after")).getTime())) + "'&lt;/PRE&gt; 
&lt;BR /&gt;But he return me an error cause the java.sql.Date is convert to string and he return 2016-01-01 instead of comparing the sql date with the oracle date. 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Thanks you in advance,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;CSen.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:44:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T10:44:05Z</dc:date>
    <item>
      <title>[resolved] [tRESTRequest] REST API Mapping, Errors Handling/Wrong Calls</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285851#M59473</link>
      <description>&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Hi everyone,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;I want to have tRESTRequest components which have different output flow with the same URI pattern “/” :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendforge.org/forum/img/members/320841/tRESTRequest-Orders.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/img/members/320841/tRESTRequest-Orders.jpg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Each output flow have parameters like :&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrders.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrders.jpg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrdersFromProvider.jpg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/img/members/320841/tRESTRequest-getOrdersFromProvider.jpg&lt;/A&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;But when i run the job only the first output flow (getOrders) is used, and he return me an error cause i don’t use the same parameters.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;It is possible to make different flow with the same URI Pattern if they don’t have same parameters (and parameters can’t be null) ? and when a parameter is null tRESTRequest use Wrong Call flow or another custom error flow ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Edit : I also have a date error, as you can see i have a date parameter (i supposed that is a java.util.Date). 
&lt;BR /&gt;to use it in my tOracleInput i tried : 
&lt;BR /&gt; 
&lt;PRE&gt;"SELECT * FROM X.Orders WHERE orderDate &amp;gt;= '" + (new java.sql.Date(((Date)globalMap.get("vGetOrders.after")).getTime())) + "'&lt;/PRE&gt; 
&lt;BR /&gt;But he return me an error cause the java.sql.Date is convert to string and he return 2016-01-01 instead of comparing the sql date with the oracle date. 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Thanks you in advance,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;CSen.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285851#M59473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [tRESTRequest] REST API Mapping, Errors Handling/Wrong Calls</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285852#M59474</link>
      <description>Hi, in this case have a single mapping only, then have a filter may be that will either get all orders or orders by id/provider, depending on whether id/provider is not empty. 
&lt;BR /&gt;The query parameters are not used in the JAX-RS matching algorithm, hence when you have 3 methods with the identical HTTP Verb and Path values, the selection is random or as in this case, the 1st matching method gets selected 
&lt;BR /&gt;HTH, Sergey</description>
      <pubDate>Thu, 17 Mar 2016 21:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285852#M59474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-17T21:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] [tRESTRequest] REST API Mapping, Errors Handling/Wrong Calls</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285853#M59475</link>
      <description>Hi,
&lt;BR /&gt;I just put a tMap and i use 3 different outputs and that works fine, Thanks.
&lt;BR /&gt;For the date parameters i will probably use a String.</description>
      <pubDate>Mon, 21 Mar 2016 10:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tRESTRequest-REST-API-Mapping-Errors-Handling-Wrong/m-p/2285853#M59475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-21T10:59:49Z</dc:date>
    </item>
  </channel>
</rss>

