Hello @IgorSpryzhkov,
Let me see if I can help with your questions:
1. How to get list of Process Groups in the root and in Each PG?
For this, you may be able to get the information with this API:
2. How to get list of Processors in Each PG?
For this one, this other API request may get you the info:
GET /process-groups/{id}/processors
3. How to organize in Groovy cycles for scan PGs?
In NiFi ExecuteScript (Groovy), you can call the API recursively.
So you should be able order the logic there to fit what you need.
4. How to save / read data in/from Groovy dictionary / NiFi cache?
You can use any of these options:
- DistributedMapCache (preferred if cluster, can use processors such as PutDistributedMapCache and FetchDistributedMapCache).
- File-based persistence (write JSON file to disk).
- FlowFile attributes (if just passing data).
Regards,
Andrés Fallas
--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs-up button.