Please enable JavaScript to view this site.

Altova MapForce 2020 Professional Edition

» No topics above this level «

Functions

Scroll Home Prev Top Next More

In MapForce, you can use the following categories of functions to transform data according to your needs:

 

MapForce built-in functions — these functions are predefined in MapForce and you can use them in your mappings to perform a wide range of processing tasks that involve strings, numbers, dates, and other types of data. You can also use them to perform grouping, aggregation, auto-numbering, and various other tasks. For reference to all available built-in functions, see Function Library Reference.

Node functions and defaults — these are more specialized functions that let you create and apply custom processing logic to one or multiple descendant nodes on a mapping component. They enable you to process data either before it reaches a node of a mapping structure, or immediately after it leaves a node. For more details, see Defaults and Node Functions.

User-defined functions (UDFs) — these are MapForce functions that you can create yourself, using as basis the native component kinds and built-in functions already available in MapForce, see User-Defined Functions.

Custom functions — these are functions that you can import from external sources such as XSLT libraries, XQuery library modules, Java .class files, .NET .dll files, and adapt to MapForce. Note that, in order to be reusable in MapForce, your custom functions must return data of simple type (such as string or integer) and they must also take parameters of simple type. For more information, see Importing Custom XSLT 1.0 or 2.0 Functions, Importing Custom XQuery 1.0 Functions, and Importing Custom Java and .NET Libraries.

 

Note:You can import custom external libraries of functions either directly (no configuration required) or by configuring  a MFF (MapForce Function File) recognized by MapForce. If you use the latter approach, you can also import C++ libraries, in addition to Java classes and .NET assemblies. Note that libraries imported via .mff files must meet the prerequisites mentioned in Referencing Java, C# and C++ Libraries Manually.

 

Use the following roadmap for quick access to specific tasks related to functions:

 

I want to...

Read this topic...

Add MapForce functions or constants to the mapping

Add a Function to the Mapping

Add a Constant to the Mapping

Search for a Function

View a Function's Type and Description

Add or Delete Function Arguments

Create my own functions in MapForce for later use in the same mapping, or in other mappings

User-Defined Functions

Import custom XSLT functions into MapForce

Importing Custom XSLT 1.0 or 2.0 Functions

Import custom .NET and Java libraries to MapForce

Importing Custom Java and .NET Libraries

Import custom .NET, Java, and C++ libraries into MapForce, by adapting them with the help of a MapForce Function File (.mff). This approach involves some manual configuration compared to the previous one, but additionally supports importing C++ libraries.

Referencing Java, C# and C++ Libraries Manually

© 2020 Altova GmbH