That is expected behaviour from NiFi:
if you `Right Click` on specific/some processors and choose Create Template will create a template for those processors only.
if you `Right Click` on canvas where no processor has been selected then NiFi creates template including all processors.
You can also use NiFi Registry instead of Templates to keep versioning and import/export workflows into other environments and keep them in sync with each other.
The above question and the entire response thread below was originally posted in the Community Help track. On Tue Jul 23 05:13 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself.
Using CNTRL and SHIFT buttons will provide the capability to selective pick processors and connectors that are intended to template.