[ 
https://issues.apache.org/jira/browse/NIFI-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15899419#comment-15899419
 ] 

ASF GitHub Bot commented on NIFI-3497:
--------------------------------------

Github user joetrite commented on the issue:

    https://github.com/apache/nifi/pull/1564
  
    @joewitt i'm made most of these changes, still testings things but one 
thing i want to note/raise (maybe by design?) in the original code is that if 
the ff does not contain any attributes that match the attribute pattern regex, 
then the ff is automatically going to the matched relationship.  I would think 
that if I specify an attribute pattern and none of the attributes match the 
pattern then the ff would go to unmatched.  I'm not planning to change this 
functionality as it would def break existing flows, just want to note it in 
case it is a bug/not working as expected.  


> ScanAttribute should support tagging a flowfile with metadata value from the 
> supplied dictionary
> ------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-3497
>                 URL: https://issues.apache.org/jira/browse/NIFI-3497
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Witt
>            Assignee: Joseph Witt
>
> Today ScanAttribute just looks through the supplied dictionary and given 
> object for a string matching hit.  If it hits then it is a match otherwise it 
> is a 'not found'.  However, when a hit occurs it can often be quite useful to 
> gather additional metadata about that hit.  This makes cases like 
> enrichment/tagging much easier.
> So, plan is to have ScanAttribute support a dictionary value demarcator which 
> would separate the dictionary term from some string response that will be 
> added to the flowfile.  For instance a dictionary might have
> apples:These are red or green
> bananas:These are yellow unless you should toss them or make bread
> Then if a hit occurs on 'apples' the flowfile that contained such an 
> attribute would have a new attribute such as 'dictionary.hit.term' = 'apple' 
> and 'dictionary.hit.metadata' = 'These are red or green'.
> This means downstream processors could extract that metadata and do 
> interesting things with it.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to