2019.2

Table Of Contents
could be created to be added to each record in the output for integrity checks later on, or a time
stamp could be added to create reports. A tag could be added to process certain records
differently. A preprocessor could remove certain records altogether.
One example of how a preprocessor could be used is given in a How-to: Using Preprocessors
in DataMapper.
Properties
To add a property:
1.
Select the Preprocessor step on the Steps pane.
2.
On the Step properties pane, under Properties, click the Add button . See
"Properties" on page359 for an explanation of the settings for properties.
To set the value of a property later on in the data mapping workflow, you can use an Action step
(see "Action step" on page283).
Preprocessors
The Preprocessor step can contain any number of preprocessors. They will be run in sequence
before the data is sent to the data mapping workflow.
Note that preprocessors are not executed automatically while designing the data mapping
workflow; you must therefore execute them manually. The reason for this is that preprocessors
can potentially be quite lengthy operations that would hinder the automatic refresh of the
display whenever anything is changed in the data mapping workflow.
To add a preprocessor:
1.
Select the Preprocessor step on the Steps pane.
2.
On the Step properties pane, under Preprocessor, click the Add button .
3.
Under Preprocessor definition, add the script. Preprocessing tasks must be written in
JavaScript (see "Using scripts in the DataMapper" on page399 and "DataMapper Scripts
API" on page396).
Page 275