Hello,

There isn't a way to directly convert an xml template to a versioned
flow json, but the latest versions of NiFi have the ability to
right-click on a process group and "Download Flow Definition" which
gives you the versioned flow json, so you could download each json
file and put it in git without using NiFi Registry, if that is what
you wanted.

Thanks,

Bryan

On Tue, Sep 28, 2021 at 4:27 AM Marel, J. van der (Jasper)
<jasper.van.der.ma...@ing.com> wrote:
>
> Hi Isha,
>
>
>
> We are using nipyapi here to automate the work. If you are interested you can 
> contact me and we can have a chat.
>
>
>
> With kind regards,
>
>
>
> Jasper van der Marel
>
>
>
>
>
> From: Isha Lamboo <isha.lam...@virtualsciences.nl>
> Sent: dinsdag 28 september 2021 09:37
> To: users@nifi.apache.org
> Subject: Converting NiFi templates to flowversions
>
>
>
> Hi all,
>
>
>
> I’m looking into migrating a template-based devops pipeline to NiFi 
> Registry-based.
>
>
>
> The current setup has finished flows being exported to templates and checked 
> into a git repository branch where they can be merged into a release branch 
> (in line with changes in the source or target applications).
>
> The deployment script takes the templates, transforms the xml to insert 
> correct environment variables and uploads to the target NiFi instance, where 
> an admin replaces the flows manually.
>
>
>
> The new setup will still use the git repo for synchronized releases, but now 
> the deployment should be into the target environment’s NiFi Registry using 
> the REST API and possibly calling the NiFi server to update the flow 
> automatically.
>
>
>
> Does anyone know if it’s possible to convert a flow template into the 
> flowversion definition that NiFi registry needs, or do we need to start over 
> by adding all flows to version control and then “getting” them from the REST 
> API?
>
>
>
> Kind regards,
>
>
>
> Isha
>
> -----------------------------------------------------------------
> ATTENTION:
> The information in this e-mail is confidential and only meant for the 
> intended recipient. If you are not the intended recipient, don't use or 
> disclose it in any way. Please let the sender know and delete the message 
> immediately.
> -----------------------------------------------------------------

Reply via email to