Basic Functions (Document Mapper/Variable Mapper)
In this page, a Document Mapper and a Variable Mapper are put together and described as "Mapper".
See "Basic Functions (Merge Mapper)" for details regarding Merge Mapper.
See "Document Mapper/Variable Mapper" for details regarding properties, specification limits, and notes.
What is Mapper?
Mapper is a converter for which you convert or process data from the input component and write in data to a component or assign to a variable.
Mapper can be used in Designer canvas. How this can be created is explained in the following sections.
- Document Mapper/Variable Mapper
- Drag and drop component icons
A mapper icon will be placed when it is dragged and dropped from the tool palette(in "Conversion"-"Basic") into the script canvas.
To place a variable mapper, Select the "Variable Substitution" icon found in the tool palette(in ("Basic"-"Processing")) and drag and drop into the canvas.
- Document Mapper
- "Add mapping" Dialog
"Add mapping" dialog will appear when Mapper and other components are wired together using data flow.
By clicking the "Yes" button, a mapper component will be interposed between the components.
Components that are capable of auto generating input schema will also create a mapping definition automatically when a mapper component is placed.
See "Edit Schema" for details with regards to defining a schema.
"Add mapping" dialog pop-up can be enabled or disabled in the [Tool]-[Option] designer menu.
See here for details.
- Using right click context menu [Add mapping] to add a mapper.
A mapper can be also placed by choosing [Add mapping] item in the context menu which appears when a data flow connecting components are right clicked.
Defining a Mapper by converting or editing data can be performed by an exclusive GUI tool.
See "Mapper editor" for details.
The input and output schemas will remain in the mapper editor, even after the data flow lines are removed.This schema is called "Temporary schema".

The schema being in this state is displays as "Temporary schema" and is distinguished from a complete schemas exists with its corresponding data flow line connecting components.
Once the data flow line is restored the "Temporary schema" will become ordinal schemas.
The advantage of schemas in "Temporary schema" state is that the schema can be edited without being connected to components.
Mappers whose schemas do not become "Temporary schema" state after the removal of data flow lines are variable mappers and merge mappers. Schemas are deleted from these mappers when data flow lines are removed.
You can also set a temporary schema manually if you wish to edit it before setting a data flow.
Select [Set temporary schema] from the menu which appears when the "Input data" or "Output data" is right clicked.
By connecting an input source element to an output destination element with a loop logic, it will be possible to process all elements under the connected elements repeatedly. The connected elements are called "repeat points".
To Create Loop
-
Drag and drop loop logic to Mapping Canvas.

-
Drag and map repeat points of input source and output destination to loop logic.
For repeat points, refer to the following part "Repeat Points".

Specifying method of repeat points differs depending on the data models of schemas.
- Table Model Type
- Repeat points can only be set to row elements.
- XML type
- Repeat points can be set to all elements except for the root element.
The difference between solid and dotted line for Mapping links
Both solid and dotted line are used as mapping links and each has different meaning from each other.
- The solid line represents a mapping of data. It is used for ordinary Mapper logic.
- The dotted line represents a loop. It is used for Loop logic or Merge logic.
Component variable
Component variable are variables that can be gotten with each component. They are used to alter the succeeding processing with the results of the adapter.
Because values available differs depending on each component, refer to the help document of each adapter for details.
"Getting component variables", "store to script variable", "convert/process", etc. are available in Document Mapper and Variable Mapper.
Mapper Logic is available in "convert/process".
Script variable
Script variable are variable that holds the value temporarily in script execution. They are used to temporarily store such as the result data of adapter for using in the succeeding process.
"Exchange data with resource", "convert/process", etc. are available in Document Mapper and Variable Mapper.
Mapper Logic is available in "convert/process".
Specify ${variable name} when using in string type property of logic.Specify $$ to escape and output $ mark
Script variables of XML type are not displayed because they are not available for using in mapping.