Support Questions

Find answers, ask questions, and share your expertise

NiFi with Groovy: how to build "bread crumbs" (PG.Names path from root to each processor)?

avatar
New Contributor

Hello!

I'm newbe in NiFi and Groovy. I hope you can help me.

Related Topic: I found here – "Solved: Re: Get the processor-group name in NIFI flow - Cloudera Community - 213662" (2018) – very interestion solution! Thank to @mburges

I have related question: I want to build with Groovy dictionary/cache for every proceccor where key = Proccesor ID, value = "bread crumbs" (full path to processor from root canvas – the string like this: "PG1_Name" / "PG2_(Child_of_PG1)_Name" / "PG3_(Child_of_PG2)_Name" .

The quesions are:

  1. How to get list of Process Groups in the root and in Each PG?
  2. How to get list of Processors in Each PG?
  3. How to organize in Groovy cycles for scan PGs?
  4. How to save / read data in/from Groovy dictionary /  NiFi cache? 

Thanks in advance for any help! 

0 REPLIES 0