2019.2

Table Of Contents
The data mapping configuration
The Workflow process uses a data mapping configuration, made with "The DataMapper" on
page225: EM_BASIC Data.
To open the data mapping configuration, open the Designer, select File > Open from the menu
and browse to the Configurations\Resources folder.
This data mapping configuration will of course only work with the appropriate data files. It was
designed for XML files that are structured like this file: Sample Data.xml (in the
Configurations\Resources\Data folder).
The sample data yields 5 records with customer data including a detail table with invoice
details.
Much of the information in the extracted records isn't used in the email, but was used to create
the delivery notes.
The email addresses are used in the template (in the To field), but ignored in the Workflow
process because it sends emails in test mode (see "The Workflow configuration" on the
previous page).
Using a Workflow variable
The path to the delivery note is constructed via JavaScript:
automation.variables.em_basic_workspace + '\\Delivery Notes\\' + record.fields.OrderNumber +
'.pdf';
The script uses a property: automation.variables.em_basic_workspace, which is defined in the
Preprocessor step. (See also: "Properties" on page275.)
In this case, the variable holds the project's path. The order number in the path is extracted from
the sample data.
Note
In order to use the value of a Workflow variable - an 'Automation variable' - as a property
in the Preprocessor step, the property and the Workflow variable must have the exact
same name.
Page 177