<?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 NiFi + Groovy: how to build &amp;quot;bread crumbs&amp;quot; (PG.Names path from root to processor)? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Groovy-how-to-build-quot-bread-crumbs-quot-PG-Names/m-p/412494#M253490</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm newbe in NiFi and Groovy.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found here –&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213666" target="_self"&gt;"Solved: Re: Get the processor-group name in NIFI flow - Cloudera Community - 213662"&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(2018) – very interestion solution!&amp;nbsp;&lt;/SPAN&gt;Thank &lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301" target="_blank" rel="noopener"&gt;@mburgess&lt;/A&gt;&amp;nbsp;!!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have related question.&lt;/P&gt;&lt;P&gt;I want to build with Groovy &lt;STRONG&gt;dictionary for every proceccor where key = Proccesor ID, value = "&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;bread crumbs"&lt;/STRONG&gt; (full path to processor from root canvas – the string like this "PG1_Name" / "PG2_(Child_of_PG1)_Name"&amp;nbsp;/ "PG3_(Child_of_PG2)_Name" .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The quesions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;How to get list of Process Groups in the root and in Each PG?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to get list of Processors in Each PG?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to organize in Groovy cycles for scan PGs?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to save / read data in/from Groovy dictionary /&amp;nbsp; NiFi cache?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help and suggestions!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Sep 2025 11:58:52 GMT</pubDate>
    <dc:creator>IgorSpryzhkov</dc:creator>
    <dc:date>2025-09-25T11:58:52Z</dc:date>
    <item>
      <title>NiFi + Groovy: how to build "bread crumbs" (PG.Names path from root to processor)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Groovy-how-to-build-quot-bread-crumbs-quot-PG-Names/m-p/412494#M253490</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm newbe in NiFi and Groovy.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found here –&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Get-the-processor-group-name-in-NIFI-flow/m-p/213666" target="_self"&gt;"Solved: Re: Get the processor-group name in NIFI flow - Cloudera Community - 213662"&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(2018) – very interestion solution!&amp;nbsp;&lt;/SPAN&gt;Thank &lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301" target="_blank" rel="noopener"&gt;@mburgess&lt;/A&gt;&amp;nbsp;!!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have related question.&lt;/P&gt;&lt;P&gt;I want to build with Groovy &lt;STRONG&gt;dictionary for every proceccor where key = Proccesor ID, value = "&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;bread crumbs"&lt;/STRONG&gt; (full path to processor from root canvas – the string like this "PG1_Name" / "PG2_(Child_of_PG1)_Name"&amp;nbsp;/ "PG3_(Child_of_PG2)_Name" .&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The quesions are:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;How to get list of Process Groups in the root and in Each PG?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to get list of Processors in Each PG?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to organize in Groovy cycles for scan PGs?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;How to save / read data in/from Groovy dictionary /&amp;nbsp; NiFi cache?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help and suggestions!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2025 11:58:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Groovy-how-to-build-quot-bread-crumbs-quot-PG-Names/m-p/412494#M253490</guid>
      <dc:creator>IgorSpryzhkov</dc:creator>
      <dc:date>2025-09-25T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi + Groovy: how to build "bread crumbs" (PG.Names path from root to processor)?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-Groovy-how-to-build-quot-bread-crumbs-quot-PG-Names/m-p/413548#M254127</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/132768"&gt;@IgorSpryzhkov&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me see if I can help with your questions:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;1. How to get list of Process Groups in the root and in Each PG?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For this, you may be able to get the information with this API:&amp;nbsp;&lt;/P&gt;&lt;DIV class="method"&gt;GET /process-groups/{id}/process-groups&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/rest-api/index.html&lt;/A&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="method"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="method"&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;2. &lt;SPAN&gt;How to get list of Processors in Each PG?&lt;/SPAN&gt;&lt;HR /&gt;&amp;nbsp;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;DIV class="method"&gt;&lt;SPAN&gt;&lt;SPAN&gt;For this one, this other API request may get you the info:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class="method"&gt;GET /process-groups/{id}/processors&lt;/DIV&gt;&lt;DIV class="method"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="method"&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;3.&amp;nbsp;&lt;SPAN&gt;How to organize in Groovy cycles for scan PGs?&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;In NiFi ExecuteScript (Groovy), you can call the API recursively.&amp;nbsp;&lt;BR /&gt;So you should be able order the logic there to fit what you need.&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="method"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="method"&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;SPAN&gt;4. How to save / read data in/from Groovy dictionary /&amp;nbsp; NiFi cache?&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can use any of these options:&lt;BR /&gt;- DistributedMapCache (preferred if cluster, can use processors such as PutDistributedMapCache and FetchDistributedMapCache).&lt;BR /&gt;- File-based persistence (write JSON file to disk).&lt;BR /&gt;- FlowFile attributes (if just passing data).&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Feb 2026 17:53:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-Groovy-how-to-build-quot-bread-crumbs-quot-PG-Names/m-p/413548#M254127</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2026-02-13T17:53:06Z</dc:date>
    </item>
  </channel>
</rss>

