mosermw commented on PR #8049:
URL: https://github.com/apache/nifi/pull/8049#issuecomment-1819694313

   Wouldn't it be more intuitive to have this functionality in the 
UpdateAttribute processor, instead of creating a new processor?  You could 
create a "Retain Attributes Expression" or "Keep Attributes Expression" 
property on UpdateAttribute.  You would probably want to enforce setting either 
this new property or the existing "Delete Attributes Expression" property, not 
both.
   
   I do think using a regular expression is a better approach than splitting a 
string using a delimiter.  Regular expressions support this already in the form 
^(foo|bar|baz)$


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to