<?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: Query on NiFi relationships in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Query-on-NiFi-relationships/m-p/377385#M243244</link>
    <description>&lt;OL&gt;&lt;LI&gt;InvokeScriptedProcessor is the closest you'll get to a native (NAR) NiFi processor from my experience. With it, you do NOT need to define all three relationships...if your code handles all possible problems correctly, you could just have "success" or other for your relationship.&lt;/LI&gt;&lt;LI&gt;From what I've seen you do need to have at least one relationship if you're modifying the FlowFile or creating new ones and require session.transfer to send it to that relationship.&lt;/LI&gt;&lt;LI&gt;You don't need to transfer the original...if you read the original FlowFile and create a new one or several new ones you can dispose of the original with session.remove(your_orginal_flow_file)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Mon, 09 Oct 2023 18:51:39 GMT</pubDate>
    <dc:creator>joseomjr</dc:creator>
    <dc:date>2023-10-09T18:51:39Z</dc:date>
    <item>
      <title>Query on NiFi relationships</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Query-on-NiFi-relationships/m-p/377347#M243232</link>
      <description>&lt;P&gt;I need some inputs on relationship definitions in a custom processor code:&lt;/P&gt;&lt;P&gt;1. Do I need to define all three(success, failure, original) relationships in processor class?&lt;/P&gt;&lt;P&gt;2. Do I need to handle all three relationships(using session.transfer(....))?&lt;/P&gt;&lt;P&gt;3. Why do I need to transfer original flowfile as it has been processed?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2023 05:57:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Query-on-NiFi-relationships/m-p/377347#M243232</guid>
      <dc:creator>manishg</dc:creator>
      <dc:date>2023-10-09T05:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query on NiFi relationships</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Query-on-NiFi-relationships/m-p/377385#M243244</link>
      <description>&lt;OL&gt;&lt;LI&gt;InvokeScriptedProcessor is the closest you'll get to a native (NAR) NiFi processor from my experience. With it, you do NOT need to define all three relationships...if your code handles all possible problems correctly, you could just have "success" or other for your relationship.&lt;/LI&gt;&lt;LI&gt;From what I've seen you do need to have at least one relationship if you're modifying the FlowFile or creating new ones and require session.transfer to send it to that relationship.&lt;/LI&gt;&lt;LI&gt;You don't need to transfer the original...if you read the original FlowFile and create a new one or several new ones you can dispose of the original with session.remove(your_orginal_flow_file)&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 09 Oct 2023 18:51:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Query-on-NiFi-relationships/m-p/377385#M243244</guid>
      <dc:creator>joseomjr</dc:creator>
      <dc:date>2023-10-09T18:51:39Z</dc:date>
    </item>
  </channel>
</rss>

