Hello,

This might not give you exactly what you want, but the Minifi Toolkit
already has the ability to transform the JSON snapshot from registry,
there are actually two commands:

"transform" - for XML templates
"transform-vfs" - for versioned flow snapshot (JSON from registry) [1]

It doesn't pull the snapshot from registry directly, so you would have
to script something to download the snapshot and then run
transform-vfs.

Thanks,

Bryan

[1] 
https://github.com/apache/nifi/blob/main/minifi/minifi-toolkit/minifi-toolkit-configuration/src/main/java/org/apache/nifi/minifi/toolkit/configuration/ConfigMain.java#L62

On Thu, Mar 30, 2023 at 10:22 AM Simeon Wentzel <[email protected]> wrote:
>
> Dear Nifi dev team
>
> Can you add extended functionality to the MiNiFi toolkit to extract a flow
> from the NiFi Registry software and convert it to the appropriate conf.yml
> file?
>
> We have found a limitation regarding the conversion in the minifi toolkit
> that it can only convert the .xml file template extracted from a Nifi
> canvas on Java version 8, it can not do the conversion on java 11 that we
> have migrated to.
>
> Although extracting the flow as a template out of nifi and then converting
> it to the conf.yaml file works we find it a bit cumbersome because we can
> not implement it in our pipeline to automate the process.
>
> By allowing the minifi toolkit to pull a flow from the Nifi registry and
> then convert it will give us the functionality to add this in our Jenkins
> pipeline to build individual docker containers for each of our flows.
>
> Regards
> Simeon
> DevOps Engineer

Reply via email to