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

Mark Payne commented on NIFI-447:
---------------------------------

Joe,

When we create a PropertyDescriptor, the "name" of the property functions as 
the identifier really. The "display name" controls what is shown in the UI. It 
would have been better to call these "identifier" and "name" probably but when 
first developed, we didn't have a concept of a "display name" and instead just 
had a "name." So "display name" was introduced in order to maintain backward 
compatibility.

So if you changed the name of the property descriptor from "Regex Value" to 
"Search Value" then on upgrade all of the ReplaceText processors would become 
invalid. By keeping the name the same and changing just the Display Name, we 
can leave the processors configured as they were so that nothing becomes 
invalid, but also change the name of the property that is shown in the UI.

Thanks
-Mark

> Add "Replacement Strategy" property to ReplaceText
> --------------------------------------------------
>
>                 Key: NIFI-447
>                 URL: https://issues.apache.org/jira/browse/NIFI-447
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Mark Payne
>             Fix For: 0.4.0
>
>         Attachments: 
> 0001-NIFI-447-Fixed-some-typos-and-clarified-some-documen.patch, 
> NIFI-447.patch
>
>
> "Regular Expression" property should have displayName changed to "Search 
> Value"
> ReplaceText should allow for a "Replacement Strategy" with values:
> Prepend (Search Value is ignored; replacement value prepended to FlowFile)
> Append (Search Value is ignored; replacement value appended to FlowFIle)
> Regex Replace (current behavior, so this should be default)
> Linewise Regex Replace (like current behavior if Evaluation Mode is set to 
> Line-by-Line)
> Literal Replace (do not interpret the Replacement value
> The Line-by-Line property should be removed; this is breaking change!



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

Reply via email to