<?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: How to mantain order of sql statement executions after RouteOnAttribute? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214653#M82290</link>
    <description>&lt;P&gt;I solved it using PutDatabaseRecord. First I load the attribute statement.type with EvaluateJsonPath and then use JsonPathReader as the PutDatabaseRecord reader service, using that statement.type attribute to switch between operations.&lt;BR /&gt;If someone have the same problem and needs me to explain it further don't hesitate to ask.&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Aug 2018 02:30:26 GMT</pubDate>
    <dc:creator>guido_rumi</dc:creator>
    <dc:date>2018-08-17T02:30:26Z</dc:date>
    <item>
      <title>How to mantain order of sql statement executions after RouteOnAttribute?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214652#M82289</link>
      <description>&lt;P&gt;Dear community,&lt;BR /&gt;&lt;BR /&gt;I'm creating a proof of concept where I consume messages (JSON) from a kafka topic related to crud operations of a resource. Then, I execute those opperations on a Postgres database.&lt;BR /&gt;&lt;BR /&gt;I've uploaded an image describing what I've done. Depending on an "action" field of JSON, I route it to different processor groups that execute those sql statements.&lt;/P&gt;&lt;P&gt;My problem is that I need to maintain order, i.e. if I have an update after an insert I need to ensure that insert will be executed before the update. &lt;BR /&gt;&lt;BR /&gt;I've played with wait and notify but didn't reach a reasonable solution.&lt;BR /&gt;&lt;BR /&gt;Any suggestion? Is nifi the right tool for this kind of problems?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;/P&gt;
&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6559i5030F1ADC986E4EA/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="nifi.png" title="nifi.png" /&gt;</description>
      <pubDate>Thu, 16 Aug 2018 23:58:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214652#M82289</guid>
      <dc:creator>guido_rumi</dc:creator>
      <dc:date>2018-08-16T23:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to mantain order of sql statement executions after RouteOnAttribute?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214653#M82290</link>
      <description>&lt;P&gt;I solved it using PutDatabaseRecord. First I load the attribute statement.type with EvaluateJsonPath and then use JsonPathReader as the PutDatabaseRecord reader service, using that statement.type attribute to switch between operations.&lt;BR /&gt;If someone have the same problem and needs me to explain it further don't hesitate to ask.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 02:30:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214653#M82290</guid>
      <dc:creator>guido_rumi</dc:creator>
      <dc:date>2018-08-17T02:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to mantain order of sql statement executions after RouteOnAttribute?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214654#M82291</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/91362/guidorumi.html" nodeid="91362"&gt;@Errico
 Malatesta&lt;/A&gt;  good job, glad you were able to work it out!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 19:00:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-mantain-order-of-sql-statement-executions-after/m-p/214654#M82291</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2018-08-17T19:00:42Z</dc:date>
    </item>
  </channel>
</rss>

