I am trying to understand the difference between the subflow environment variables and the subflow instance variables and their use cases.
ie. when i doubleclick a subflow, i see a tab "environment variables", when clicking "edit subflow" > edit properties, there are also environment variables, but they differ as within the subflow they are used for creating the UI inputs.
What are the other differences between the 2 and how should they addressed/ be used, is there a good example available ?
Do you mean the tab below on the subflow instance?
I use the "UI Environment Variables" to customise each instance of my subflows, but I've never tried setting additional variables in this tab. However a quick test with a subflow concatenating the UI and "other" env variables seems to work :
I'm not sure what the usage of this would be though, as you'd have to document what variables were expected. Setting them in the subflow UI is easier and you can also give them default values.