Data Transformation Engine Design Studio Tutorial
Chapter 3 - Modifying the Mail.mms Map Source File Executable and Functional Maps
Design Studio Tutorial
81
entire files, database tables, messages, applications, and so on. Think of an
executable map as the main map, the top-level map. Executable maps are
compiled and run.
In the Navigator, the icon for an executable map is blue
.
Functional Map: A functional map is referenced by another map through a map
rule. A functional map maps just a portion of the entire data. Data sources and
targets are not specified in the input and output cards of functional maps.
Functional maps are not compiled and run.
In the Navigator, the icon for a functional map (or an incomplete executable
map) is gray
.
Functional Maps
A functional map is like a sub-routine; it maps a portion of data at a time. A
functional map takes one or more input objects and generates one output object.
The use of functional maps is very common. Almost every executable map created
will use at least one functional map. A functional map and the executable map
that calls it must be in the same map source file (.mms).
To map a group in the input to a different group in the output, use a functional
map. The presence of an output component with a range of more than one is one
determining factor of when to use a functional map.
Note The Label data object component range of (s) indicates the number of Label(s)
to be created is based on the number of Contact(s).
Another important factor in determining when to use a functional map is when you
want to transform the data: mapping from one or more types to a different type.
For the ContactToFullLabel map, we want to map from the First Name Field,
Middle Name Field, and Last Name Field to the FullName Field.
We know we need to use a functional map because:
♦ The number of a certain output group, Label, that we want to create is based
on the occurrences of some input data, Contact.
♦ The types are different types (First Name Field, Middle Name Field, and
Last Name Field to FullName Field)