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

Mark Payne edited comment on NIFI-531 at 4/21/15 11:51 PM:
-----------------------------------------------------------

Joseph,

Have you looked at ReplaceText? You can set the "Regular Expression" property 
to ".\*" and then put whatever replacement value you want. There is actually an 
optimization in the Processor for this - if the regex is set to ".*" it doesn't 
even read the content. It just replaces the content with whatever value you set.

Thanks
-Mark


was (Author: markap14):
Joseph,

Have you looked at ReplaceText? You can set the "Regular Expression" property 
to ".*" and then put whatever replacement value you want. There is actually an 
optimization in the Processor for this - if the regex is set to ".*" it doesn't 
even read the content. It just replaces the content with whatever value you set.

Thanks
-Mark

> Add UpdateContent processor
> ---------------------------
>
>                 Key: NIFI-531
>                 URL: https://issues.apache.org/jira/browse/NIFI-531
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Joseph Gresock
>
> A simple and powerful processor would be one that can replace the content of 
> a flow file with an evaluated EL expression.  This could be coupled with 
> processors that take specific document formats as input (e.g., PutSolr from 
> NIFI-461), which could easily be constructed using one or more flow file 
> attributes.
> I believe the only way built into Nifi that lets you achieve this is to 
> specify a header file in MergeContent, whose contents is an EL expression.  
> This would simplify the process.
> Pull request forthcoming this week.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to