Adding variables to processor group not detected as change. The following are the steps to reproduce the issue
The process group does not show there was local change. we are doing workaround of changing position of any processors inside processor group. is this defect or expected?
NiFi Version : 1.7.1
Yes, this is expected behavior. As documented in the NiFi User Guide (https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#managing_local_changes) modifying variables is not considered a local change. When a flow is imported to an environment, it is assumed there is a one-time operation required to set those variables specific for the given environment. For more information and how this relates to variables not supporting sensitive values, please see this NiFi Users mailing list thread:
Thanks for quick reply. I agree with variable values needs to set one time on the target environment. The problem which i am facing is adding new variable(not value) to process group is not detected as change.
Sorry that I didn't answer your question directly. I see what you are saying now.
Creating a variable doesn’t trigger a local change because just creating a variable on its own has not changed anything about what the flow processes. A component will have to be created/modified that uses the new variable, which will trigger a local change.
Having said that, the documentation could be improved and I have filed https://issues.apache.org/jira/browse/NIFI-5677 to do so.