Description:
This processor updates the content of a FlowFile by evaluating a
regular
expression (regex) against the content and replacing the section of
content that matches a specified matching group of the
regular expression with an alternate,
user-defined, value provided in a mapping file. The mapping
file is formatted as one key/value pair per line, seperated by tabs.
Properties:
In the list below, the names of required properties appear in bold.
Any other properties (not in bold) are considered optional. If a
property has a default value, it is indicated. If a property supports
the use of the NiFi Expression Language (or simply, "expression
language"), that is also indicated.
- Regular Expression
- The regular expression to use to evaluate the FlowFile
content.
- Default value: (\\S+)
- Supports expression language: true
- Matching Group
- The number of the matching group of the provided regex
to replace
with the corresponding value from the mapping file (if it exists).
- Default value: 0
- Supports expression language: true
- Mapping File
- The name of the file (including the full path)
containing the Mappings.
- Default value: no default
- Supports expression language: false
- Mapping File Refresh Interval
- The polling interval in seconds to check for updates to
the mapping file.
- Default value: 60s
- Supports expression language: false
- Character Set
- The character set in which the file is encoded.
- Default value: UTF-8
- Supports expression language: false
- Maximum Buffer Size
- Specifies the maximum amount of data to buffer (per
file) in order to apply the regular expression. If a FlowFile is larger
than this value, then the FlowFile is routed to the failure
relationship.
- Default value: 1MB
- Supports expression language: false
Relationships:
- failure
- If FlowFiles cannot be updated, then they follow this
relationship.
- success
- If FlowFiles are successfully updated, then they follow
this relationship.