Github user JPercivall commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1371#discussion_r94175773
  
    --- Diff: 
nifi-nar-bundles/nifi-update-attribute-bundle/nifi-update-attribute-processor/src/main/java/org/apache/nifi/processors/attributes/UpdateAttribute.java
 ---
    @@ -424,59 +419,104 @@ public void onTrigger(final ProcessContext context, 
final ProcessSession session
             // because is the original flowfile is used for all matching 
rules. in this
             // case the order of the matching rules is preserved in the list
             final Map<FlowFile, List<Rule>> matchedRules = new HashMap<>();
    -        Map<String, String> statefulAttributes = null;
    +
    +        final Map<String, String> stateInitialAttributes;
    +        final Map<String, String> stateWorkingAttributes;
    +        StateMap stateMap = null;
     
             matchedRules.clear();
    --- End diff --
    
    Lol, yeah that isn't necessary. I'll remove it. It is a remanent of when we 
removed the "session.get(100)" at the beginning of the onTrigger when run 
duration wasn't a thing.


---
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