@Vasu_ While NiFi still generates a flow.xml.gz, it is no longer the file that is loaded during NiFi startup. If the flow.json.gz file exists, that is what is going to be loaded. So if you swap out only the flow.xml.gz with a flow.xml.gz from archive and do not remove the flow.json.gz, the flow.json.gz is still going to be loaded.
When only the flow.xml.gz exists, NiFi will load it and convert it to a flow.json.gz which it will use from that point forward. At this time, NiFi will still output both a flow.json.gs and flow.xml.gz as you make changes to the canvas in the NiFi UI. Eventually the flow.xml.gz will go away completely.
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt