Core functions

Loop

A loop is an iteration element controlled by a link. Loop functions can contain nested loops or other function elements. Use loops to create repeating elements in the output document based on conditions that are determined by the type of source elements of the connected link.

A loop can be dropped on the mapping area or on another Loop function, where the latter will create a nested loop.

If

An If function is a condition element controlled by a link. If functions can contain loops, another If function, or other function elements. Use If functions to create elements in the output document based on conditions that are determined by the type of source element of the connected links.

An If function can be dropped on the mapping area, on a Loop function, or on another If function where the Loop and If functions will create a nested structure.

Boolean

Boolean function (UBJ) controls the loop iterations based on user-defined criteria. These functions are also known as "loop-controlling functions".

Note: The Boolean and Java functions are almost the same, except that Boolean function's output is a Boolean value. Although, you define the criteria by writing Java code in the same way.

Java

Java functions can be dropped on the mapping or a Loop. A user-defined Java function (UVJ) processes data in the form of input parameters and sends the result to output parameters. Java code is used to define the processing that the function will do.

Repository

Repository Functions are reusable Java and Boolean functions stored in Function Repository that is part of a Mapper database. Reusable functions can be dropped on the mapping area or a loop.

Assign

Use this mapping element to make a direct assignment from an input document element to an output document element.

You can drag and drop an input element directly to an output element. In the Core Functions pane, you can also select and drag Assign in the Mapping Editor area and drop it in the mapping. Then, attach the input and output elements by dragging and dropping them to the Assign widget.

Collector

A Collector function behaves like a UVJ function with regard to input parameters. The input document elements and attributes, preceding functions’ output parameters, and global variables and constants can be linked to Collector function.

Collector function stores your altered data into memory, so it can be sorted before the outmost restructure loop starts.

Restructure

A Restructure function behaves as a UBJ function. Restructure function controls the loop iterations and can only be created in a loop. Only one Restructure function can be made within a loop and it must be the first in the loop's sequence.

Note

You can use this mapping element to insert specific textual descriptions in relevant places in your mapping. When you move the mouse pointer over a note, the note contents are shown. Inserted notes can be edited by double-clicking on the note function, or through its context menu.