Replace Metadata

This task will perform a Regex search on the configured metadata field and replaces it with supplied text.


Configuration

To use this task go to the task tab in your job. Select the task from the drop down and click the plus circle to configure the task. Click done after making any changes to save.

Condition check

It will execute the task when the condition's result is 'true', 't', 'on', '1', or 'yes' (case-insensitive), or run on all conditions if left empty. This condition is evaluated for each document, determining whether the task should be executed based on the specified values.

Example: If I only want to run this task for PDF documents I would use the expression: equals('#{rd.mimetype}',"application/pdf")

Source Metadata Field

The field to check.

Regex to Match

A regular expression to use as the first argument of a Java String.replaceAll() method.

Replacement Text

The text to use as the second argument of the replaceAll() method.


API Keys

Processor: metadataReplaceTask

Key

Display Name

Type

use_condition Check a condition before executing this task. Boolean

task_condition

Condition

String

task_stop_proc

Stop Processing

Boolean

mrjt_field

Source Metadata Field

String

mrjt_regex

Regex to Match

String

mrjt_replace

Replacement Text

String