<?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>question Re: async call using InvokeHTTP in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/async-call-using-InvokeHTTP/m-p/321223#M228318</link>
    <description>&lt;P&gt;UPDATE:&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this little trick but i need some help to understand why it does not work good.&lt;/P&gt;&lt;DIV class="s-prose js-post-body"&gt;&lt;P&gt;I have a json coming as response from an InvokeHTTP like this:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="hljs-punctuation"&gt;{&lt;/SPAN&gt;
   &lt;SPAN class="hljs-attr"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"1234567890"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="hljs-attr"&gt;"status"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"completed"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="hljs-attr"&gt;"others"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"abc"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;,&lt;/SPAN&gt;
   &lt;SPAN class="hljs-attr"&gt;"field"&lt;/SPAN&gt;&lt;SPAN class="hljs-punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"1"&lt;/SPAN&gt;
&lt;SPAN class="hljs-punctuation"&gt;}&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;I would like to use a processor (maybe RouteOnAttribute??) that checks if the status of the response is completed and in case of un-match, it goes back to the invokeHttp to check status again.&lt;/P&gt;&lt;P&gt;I tried this thing:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EvaluateJsonPath(to extract id from json) -&amp;gt; InvokeHTTP(to get status) -&amp;gt; RouteOnAttribute(to check status if completed)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-&amp;gt; match goes to a funnel&lt;/LI&gt;&lt;LI&gt;-&amp;gt; unmatch goes to EvaluateJsonPath again (to create a loop)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;For the InvokeHTTP I need the original json file since I have to get the request id.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I used Route to property name with the following attribute: status - ${status:equals('completed')}&lt;/P&gt;&lt;P&gt;unfortunately, I always receive an un-match even if the status is completed.&lt;/P&gt;&lt;P&gt;Where is the issue?&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="mt24 mb12"&gt;&lt;DIV class="post-taglist d-flex gs4 gsy fd-column"&gt;&lt;DIV class="d-flex ps-relative"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 20 Jul 2021 16:13:36 GMT</pubDate>
    <dc:creator>alexmarco</dc:creator>
    <dc:date>2021-07-20T16:13:36Z</dc:date>
  </channel>
</rss>

