<?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 Removing flowfile from queue in ExecuteScript Processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Removing-flowfile-from-queue-in-ExecuteScript-Processor/m-p/103862#M42273</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I
have a simple workflow whereby a flowfile is passed into an ExecuteScript
processor. This runs the following python in the Script Body:&lt;/P&gt;&lt;P&gt;ff =
session.create()&lt;/P&gt;&lt;P&gt;session.transfer(ff,
REL_SUCCESS)&lt;/P&gt;&lt;P&gt;This
transfers the flowfile to the success path, however, the flowfile is never
removed from the input queue and thus continues to execute again and again. How
do I remove it from the input queue once the script has run?&lt;/P&gt;&lt;P&gt;p.s.
Is there any documentation for this? Best I have found is the (unofficial?) &lt;A href="http://funnifi.blogspot.co.uk/2016/02/executescript-processor-hello-world.html"&gt;http://funnifi.blogspot.co.uk/2016/02/executescript-processor-hello-world.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Breandán&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 20:32:52 GMT</pubDate>
    <dc:creator>breandan_parlan</dc:creator>
    <dc:date>2016-09-29T20:32:52Z</dc:date>
    <item>
      <title>Removing flowfile from queue in ExecuteScript Processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Removing-flowfile-from-queue-in-ExecuteScript-Processor/m-p/103862#M42273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I
have a simple workflow whereby a flowfile is passed into an ExecuteScript
processor. This runs the following python in the Script Body:&lt;/P&gt;&lt;P&gt;ff =
session.create()&lt;/P&gt;&lt;P&gt;session.transfer(ff,
REL_SUCCESS)&lt;/P&gt;&lt;P&gt;This
transfers the flowfile to the success path, however, the flowfile is never
removed from the input queue and thus continues to execute again and again. How
do I remove it from the input queue once the script has run?&lt;/P&gt;&lt;P&gt;p.s.
Is there any documentation for this? Best I have found is the (unofficial?) &lt;A href="http://funnifi.blogspot.co.uk/2016/02/executescript-processor-hello-world.html"&gt;http://funnifi.blogspot.co.uk/2016/02/executescript-processor-hello-world.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Breandán&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 20:32:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Removing-flowfile-from-queue-in-ExecuteScript-Processor/m-p/103862#M42273</guid>
      <dc:creator>breandan_parlan</dc:creator>
      <dc:date>2016-09-29T20:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removing flowfile from queue in ExecuteScript Processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Removing-flowfile-from-queue-in-ExecuteScript-Processor/m-p/103863#M42274</link>
      <description>&lt;P&gt;session.create() will create a new flow file, it won't use an incoming one. For that you will want session.get(), which returns a flow file (or None). If you require an input flow file, be sure to check for None and only continue processing if the flow file != None. There is an &lt;A target="_blank" href="http://funnifi.blogspot.com/2016/03/executescript-json-to-json-revisited_14.html"&gt;example of this on my blog&lt;/A&gt; (same site as above but different post).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 20:51:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Removing-flowfile-from-queue-in-ExecuteScript-Processor/m-p/103863#M42274</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2016-09-29T20:51:22Z</dc:date>
    </item>
  </channel>
</rss>

