You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Mark Payne (JIRA)" <ji...@apache.org> on 2015/04/22 01:50:59 UTC

[jira] [Commented] (NIFI-531) Add UpdateContent processor

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

Mark Payne commented on NIFI-531:
---------------------------------

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)