Github user YolandaMDavis commented on the issue:

    https://github.com/apache/nifi/pull/571
  
    
    @JPercivall thanks for the review!  Just wanted to add a couple of notes on 
questions you had above:
    
    
    > @YolandaMDavis, what happens if an incoming FlowFile, 
FileVariableRegistry and custom EL attributes all have the same key? Is there 
any ordering enforced? From looking at the code, I believe it to be random.
    >
    
    The order is dictated through the MultiMap's (now ImmutableMultiMap) use of 
an ArrayList internally which maintains the order in which a map was added to 
that list.  In the case you mentioned where the same key name appears across a 
flow file, file/property registry etc the first map encountered in the 
ImmutableMultiMap's list with that value will be used.
    
    When the variable registry is initialized via VariableRegistryUtils (as it 
is in most of the application) environment variables and java application 
properties are added first, with those values taking precedence.  
    
    The details of this will be added to the admin guide (which I believe is 
part of another issue on Jira list, but I can confirm).



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to