Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

You can access Web Mapper to map source schema elements to target schema elements.

To access Data Mapper:

  1. Go to ACCOUNTS  and click Manage Objects.



  2. Expand MAPPINGS and click Mapping > CREATE Mapping. The Create New Mapping screen is displayed in a new page.

    Image Added

  3. Type the name and description of the new mapping activity in the Name and Description text boxes.
    Image Removed
    Image Added

  4. Select the Project from drop-down list of Select Project.
  5. Click Create to
  6. Select the Source and Destination Layout checkbox which you want to use for Mapping and click Load.

    Info
    You can select multiple source and multiple layout for mapping.
    Image Removed

 Understanding Data Mapper 

 The Data Mapper screen is displayed below:

Image Removed

The Data Mapper screen is divided into eight sections. These are outlined as:

  Menu Bar

Menu Option

Sub-Option

Function

File

 

 

Load Schema

Loads the source and target schema activity into Data Mapper.

Save

Saves the mapping activity.

Exit

Exits the Data Mapper.

 

 

 

View

 

 

Enable Tool Tips For Source/Target Tree

Activates or deactivate tooltips to be displayed at the source or target leaf elements. Tool Tips are always displayed as active for root elements.

Move Connection Ends

Sets the width of connecting lines. By default, it is set to 50px.

View Mapping XML

Displays the generated XML file with line numbers. It is displayed in read-only mode.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Actions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Validate XSL

Validates the generated XSL file.

Global Custom XSL Before

Adds a custom XSL code at the top of the mapping XSL.

Global Custom XSL After

Adds a custom XSL code at the bottom of the mapping XSL.

On demand (optimized) loading of XML Schema tree

Process only the root level element; not the complete XSD, if the XSD is complex. When you expand the hierarchy elements, it processes child elements and loads them into memory. The hierarchy elements expansion is now displayed in the applet. This option is applicable only on XML schemas. It optimizes the processing of XML schemas and loads the XSD elements only up to 2 levels in the source and target panels. You need to click a hierarchy element to load its further child elements.

Cache Included Schemas

Set whether or not to cache the included XML schemas instead of inlining them as specified by the XML schema specification. This is applicable to all XML Schema which uses XSD.

Tree Expand Level for Optimized Loading

Defines the hierarchy level up to which the source and target files will be displayed for the schema loaded in Data Mapper. Hierarchy level is defined in the Tree Expand Level Dialog, which is opened when a user clicks this menu option. By default, its value is 3, that is, Data Mapper will display the hierarchy of source and target files for the respective schema up to level 3.

Easy Schema Parser Configuration

Defines the hierarchy level up to which the source and target files will process the schema to load it into the Data Mapper. You can define the hierarchy level in the Tree Expand Level Dialog box, it appears when you click on this menu option. The default value in the Tree Expand Level Dialog box is 10. This means that the Data Mapper will display the hierarchy of source and target files for the respective schema up to level 10.

Namespace

Manages Namespace.

Enable DBQuery caching

Enables DBQuery cache. This implies that if the same DBquery is fired on another element, it will generate the result from the existing query, instead of creating a new connection.

Search Element

Searches an element in the Source or Target schema hierarchy on the basis of Wild Card character(s) Comments, Data Type, Current Mapping Rules, Documentation, and Extension Node Element in the tree node of the Data Mapper.

Set Data Viewer Record Count

Sets the maximum number of records that can be shown in the data viewer.

Custom Auto Map Options

Adds a custom option for the Auto Mapper.

Value Map

Adds an option for value map.

Enable Quick Splitting

Splits data at the source and merges at the target end automatically.

Import Mapping

Maps the elements in a pattern similar to an existing mapping.

Set Character Set Encoding for Data Parsing

Sets the character set encoding for the target schema before mapping the data elements.

Create Context Schema Definition

Contains the name of the context variable that you want to map to another element.

XSL Settings

XSL Version: Gives you options to change the XSL version used in data mapping. The available options are - Version 1.1, Version 2.0, and Version 3.0.

XSL Transformer: Gives you a choice to select a parser to parse your mapping activity in the Data Mapper from the options - SAXON and XALAN. XALAN is supported only in XSL Version 1.1.
 Changing SAXONICA Transformer Properties
 Streaming Mode: Streaming is useful while working with large files or documents. Streaming processes files by streaming the part of a file rather than loading the whole file into memory. You need to enable streaming to process large size file while mapping Source and Destination elements but before enabling you must follow some streaming guidelines. This option is supported only with XSL Version 3.0.Set Font for MappingSets the font for mapping elements.

 

Output Settings

Exclude Result Prefixes: Excludes a namespace prefix from the target element.

CData Section Elements: Defines the CDATA elements for the target schema which will be displayed on the Output section of the Debugger screen.

Filter Unmapped Elements: Filters the elements or attributes from appearing in the target XML.

Indent Output XML: Generates an indented mapping output (XML).

 Filter Empty Elements: Filters the empty elements from appearing in the output mapping XML.
 Enabling Filter Empty Elements

 

 

Help

 

 

 

Data Mapper Help

Displays online help for the Data Mapper section.

Mapping Functions Help

Displays online help for mapping functions.

Tip of the Day

Displays the tips on startup.

About Data Mapper

Displays the About box for the Data Mapper tool.

 Tabs Panel

Data Mapper

Displays the Data Mapper screen for mapping source and target elements.

XSL

Displays the generated XSL code with line numbers for the mapping activity.

Debugger

Validates and views the output of the mapping activity.

Name

Function

 Tool Bar
Image RemovedLoad SchemaOpen source and target schemas.

Image Removed

Save Mapping

Saves mapping activity.

Image Removed

Remove All Mappings

Removes all the mapping between the source and the target elements.

Image Removed

Validate XSL

Validates generated XSL.

Image Removed

Auto Mapper

Maps the source and the target elements if the structure of the source and the target schemas and the names of the source and the target elements are similar.

Image Removed

One to One Mapping

Maps all the source and the target elements under a parent element if the number of elements in the source and the target schemas are same.

Image Removed

Toggle Element Properties

Displays the property of the source or target element if it is defined in the schema. 
To view the property, click this button and then click the element whose property you want to view.

Image Removed

Value Map

Opens the Value Map Options dialog box.

Image Removed

Custom Auto Map

Automatically map elements of source and target schemas where hierarchy and elements are different.

Image Removed

XSL Template(s)

Creates an XSL Template and further manage XSL templates from the Manage XSL Template screen.

Button

Name

Function

 Source Panel
The Source Panel is used to display a source schema. All the elements of the source schema are listed in the Source Panel. When multiple source schemas are loaded, then all elements of each schema are listed under their respective source nodes.
  

 Target Panel
The Target Panel is used to display a target schema. All the elements of the target schema are listed in the Target Panel. When multiple target schemas are loaded, then all elements of each schema are listed under their respective target nodes.

 Mapping Functions Panel
The Mapping Functions Panel displays all mapping functions that can be used to map source and target schema elements. Mapping functions are supported by XSLT. However, the Data Mapper also includes some customized functions, which are not standard of XSLT. Refer to Using Mapping Functions for details on mapping elements using these functions. 

In addition to the mapping functions, an option of XSL Template is also displayed on the Mapping Functions Panel. This option enables you to Add XSL Template and further manage XSL templates from the Manage XSL Template screen.

 Mapping Graph Area
The Mapping Graph Area is used to map the source and the target elements. You can apply the mapping function between source and target elements in this section. Mapping of the selected target element is displayed in the Mapping Graph Area. This mapping is displayed in the form of Mapping Rules (graphical representation) or as Textual Rules (code representation). Additionally, you can view and set target element properties such as adding comments for target elements and also repeat occurrences of a target element based on the occurrences of a source element, by applying the  For Each property. Further, you can apply sorting rules for elements and also set the Disable-Output-Escaping property. 

Additionally, you can create LocalGlobal, and Context Variables in Mapping Graph Area. You can also define Custom Methods and Key Functions in this section. 
The Mapping Graph Area comprises of two tabs. These tabs further list sub tabs using which you can perform various functions. These are outlined in the table below.

Tabs of Mapping Graph Area

Tab

Sub-Tabs

Function

 

 

Node

 

 

 

Mapping Rules

Displays the graphical representation of the mapping of source and target elements.

Textual Rule

Displays the textual code representation of the mapping of source and target elements.

Local Variables

Creates and defines local variables for mapping source and target elements.

Properties

Displays and set properties for source and target elements. Enables you to add comments for elements and applies sorting rules for target elements. It allows you to set the Disable-Output-Escaping property.

 

 

 

Global

 

 

 

 

Global Variables

Creates and defines global variables for mapping source and target elements.

Custom Methods

Creates global methods for mapping source and target elements.

Key Functions

Creates and defines keys for mapping source and target elements.

Context Variables

Creates and defines context variables for mapping source and target elements.

Connection Info

Creates and defines connection info variables for mapping source and target elements.

Data Viewer

 

Source

Preview data of the uploaded file at the source end.

Target

Preview data at the target end according to the uploaded source file and mapping rule applied.

The Mapping Graph Area also comprises of buttons. These buttons are displayed based on the selected tabs. All buttons of the Mapping Graph Area are explained in the table below.

Buttons of Mapping Graph Area

Image Removed

Apply Mapping

Maps the selected source elements to the selected target elements.

Image Removed

Remove Mapping

Removes the mapping between the selected source and the target elements

Image Removed

Pop Out Parameters Panel

Pop out the Parameters Panel and display it as maximized.

Image Removed

Add Global/Local/Context Variable/Key

Adds a new global, local, context variable or a key.

Image Removed

Save Global/Local/Context Variable/Key

Saves a new local, global, context variable or a key.

Image Removed

Remove Selected Global/Local/Context Variable/Key

Removes the selected global variable, local variable, context variable or key.

Image Removed

Remove all Global/Local/Context Variables/Keys

Removes all existing global variables, local variables, context variables or keys.

Image Removed

Clears Global/Local variable name and value text fields

Clears all data entry fields while adding a local or global variable.

Image Removed

Add New Method

Adds a new custom method.

Image Removed

Remove Selected Method

Removes the selected custom method.

Button

Name

Function

 

You can expand the Mapping Graph Area by clicking Maximize (Image Removed) button displayed on the Split Bar below the Source and Target Panels. Similarly, by clicking Minimize (Image Removed) button, you can restore the Mapping Graph Area to its original size. Alternately, you can drag the Split Bar to resize the Mapping Graph Area and Source and Target Panels.

 

 Parameters Panel

Global Variables

Displays a list of all the global variables defined for the mapping of source and target elements in the current mapping object.

Local Variables

Displays a list of all the local variables defined for the mapping of source and target elements in the current mapping object.

Custom Methods

Displays a list of all the methods defined for the mapping of source and target elements in the current mapping object.

Keys

Displays a list of all the keys defined for the mapping of source and target elements in the current mapping object.

Context Variables

Displays a list of all the context variables defined for the mapping of source and target elements in the current mapping object. All context variables created in the Data Mapper are transferred to the Process Flow Designer.

Templates

Displays a list of all the XSL templates created for the mapping of source and target elements in the current mapping object.

Connection Info

Displays a list of all connection info variables.

Global Methods

Displays a list of all class files present in the Custom Classes folder.

Value Map

Displays a list of value maps created for the elements

Parameters

Description

 

All parameters are displayed in this section as and when they are created in the mapping process.

You can remove a parameter by right-clicking the parameter and selecting the Remove option.

 

You can expand the Mapping Graph Area by clicking Maximize (Image Removed) button displayed on the Split Bar below the Source and Target Panels. Similarly, by clicking Minimize (Image Removed) button, you can restore the Mapping Graph Area to its original size. Alternately, you can drag the Split Bar to resize the Mapping Graph Area and Source and Target Panels.

 

 
If the Data Mapper needs to process a large file (more than 50 MB) then always use splitting inside the Data Mapper activity. You can enable splitting in Advanced Properties of the Data Mapper activity and set the Splitter/Merger x-path inside the Data Mapper Applet. For information on how to apply splitting in Data Mapper, click here.
 Always try to implement database caching inside the Data Mapper. This can be achieved by making a DBQuery at the root node, storing the results in the global variable, and then for each record in the input, use the global variable value to get the results from the database. It would reduce the number of database interactions, probably one for whole Data Mapping and hence optimizing the performance of the Data Mapper.
  1. Anchor
    Modify Settings
    Modify Settings
    Click Modify Settings on the Create New Mapping screen to expand the advanced properties of the new Mapping activity.

    Image Added

  2. Select the Splitting Data checkbox to enable the splitting of data.

    Info
    If you select this checkbox, then you have to split the data. You can do this by setting the Splitter XPath in the Data Mapper

    .

  3. Enter the number of records into which you want to split the data, in the Split Number of Records field. For example, if you have a source file of 100,000 records and you want split this file into records of 10,000 each, then you need to enter 10,000 in this field.
  4. Select the Parallel Processing checkbox to parallel process these records. By default, records are processed sequentially.
  5. Enter the number of chunks you want to process concurrently, in the Maximum Concurrent Processes field. By default, value of 1 is entered.

    Info
    It is advised to change this value, if Parallel Processing is selected. Else, only one chunk is processed at a time and hence sequentially.
  6. Click Create to open the Select Layout window.

Next Step

Load Source and Destination Layout