<?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: Need help on a logic using NiFi. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119807#M55253</link>
    <description>&lt;P&gt;may be a two step approach should be used. in the first list file, just look for .xml files, and then when you have executed the script for xml, trigger another list for *.dat files .&lt;/P&gt;</description>
    <pubDate>Thu, 23 Feb 2017 01:18:36 GMT</pubDate>
    <dc:creator>knarayanan</dc:creator>
    <dc:date>2017-02-23T01:18:36Z</dc:date>
    <item>
      <title>Need help on a logic using NiFi.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119806#M55252</link>
      <description>&lt;P&gt;Team, &lt;/P&gt;&lt;P&gt;I am getting the below files in a directory in the same order, 

companies.dat 
data.xml 
transaction.dat 
accounts.dat 
bankdetails.dat &lt;/P&gt;&lt;P&gt;I use a List File processor to read the files from a directory. When we encounter ".xml" file, it should trigger a shell script &amp;amp; rest of the files (transaction.dat, accounts.dat &amp;amp; bankdetails.dat) should not be processed until script completes its execution. Once the script is complete, the rest of flow files should be processed.&lt;/P&gt;&lt;P&gt;
If .dat file then process the file(Path A).

If .xml file, then trigger the script(Path B) &amp;amp; then process the rest of the .dat files(Path A). &lt;/P&gt;&lt;P&gt;Could you please help us with an approach? &lt;/P&gt;&lt;P&gt;Please let me know if more info is required. &lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 00:49:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119806#M55252</guid>
      <dc:creator>rohit_ravishank</dc:creator>
      <dc:date>2017-02-23T00:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a logic using NiFi.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119807#M55253</link>
      <description>&lt;P&gt;may be a two step approach should be used. in the first list file, just look for .xml files, and then when you have executed the script for xml, trigger another list for *.dat files .&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 01:18:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119807#M55253</guid>
      <dc:creator>knarayanan</dc:creator>
      <dc:date>2017-02-23T01:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on a logic using NiFi.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119808#M55254</link>
      <description>&lt;P&gt;Step 1:  List XML files&lt;/P&gt;&lt;P&gt;Step 2:  Execute Script&lt;/P&gt;&lt;P&gt;Step 3:  On Success, List Data Files&lt;/P&gt;&lt;P&gt;Step 4:  Process those files&lt;/P&gt;&lt;P&gt;I have done that with some things, works fine.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 01:57:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-on-a-logic-using-NiFi/m-p/119808#M55254</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-02-23T01:57:40Z</dc:date>
    </item>
  </channel>
</rss>

