Summary
Requirements
Create a Map
Add Driving Blocks
Creating constants
Mapping process
Save the Map
Run the Map
Summary
This article demonstrates how to create repeating blocks in a map definition within Enterprise Enabler (EE).
Requirements
- Enterprise Enabler 5.x
- Source/Destination Templates
Create a Map
Open Enterprise Enabler and create a new map by clicking File » New » Map.

The new map definition window opens.

Right-click in the Source Templates area and then select Add Template from the context menu.

Right-click in the Destination Templates area and then select Add Template from the context menu.

Here is the map with source/destination templates added.

Left-click on the CustomerOrders block in the Destination Templates area, drag it to the Mappings area, and drop it. Right-click in the Mappings area and select Expand All from the context menu.

Here is the Mappings area after dragging the destination block.

Now, left-click on the Address block in Destination Templates area, drag it to the Mappings area, and drop it on the
CustomerOrder block in the Mappings area. Again, right-click in the Mappings area and select Expand All from the context menu.

We have Address as the repeating block in the Mappings area. Now right-click on the Address block in the
Mappings area and select Set/Unset As Repeating Block from the context menu.

Repeat the process for each repeating block.
Adding Driving Blocks
Left-click on the CustomerOrder block in Source Templates area, drag it to the Mappings area, and drop it on theCustomerOrders block in the Mappings area. Again, right-click in the Mappings area and select Expand All from the context menu.

Now we have the map definition with the Driving Block added.

Creating Constants
Right-click on the AddressType column of the first repeating Address block in the Mappings area and select
Constants from the context menu.

When the Constant Value dialog window opens, type Billing Address in the input text box.

Now repeat the process for the second repeating Address block and type Shipping Address in the input text box of the
Constant Value dialog window.

Mapping Process
Left-click on the firstName column in the Source Templates area, drag it to the Mappings area, and drop it on the
FirstNamecolumn in the Mappings area. Repeat the process for each of the source columns. Here is the final map definition.

Save the Map
Left-click on the Properties tab and the Properties docking window opens.

Select BusinessOwner, CategoryName, GroupName and other parameters. Specify Name as the map name,
Description(optional), and other parameters.

Click on File » Save As to save the map definition.

A dialog window opens to confirm the saving of the map definition.

Click on the
button.
Run the Map
Click on File » Open » Map » Map Execution Console.

The Map Execution Console window opens.

Click on the
button to select the map to be executed and the Select Map dialog window opens.

Select the map and click on the
button.

Click on the
button to run the map and create/update the destination file or click on the
button to view the
transformed data without actually creating/updating any destination file. Click on the
button to exit the screen. Here is the snapshot of the map which ran successfully.
