SubFunctions
You can use SubFunctions to create reusable subroutines in mappings. A SubFunction is a mapper function that executes a mapping. You define SubFunctions in function collections, .xmp files that you can share across projects or share with your team.
This contains procedures to create SubFunctions, connect SubFunctions in mappings, and manage SubFunctions from the tree pane. See below to get started with the basic workflow.
Creating a SubFunction
In the tree pane, you can right-click a function collection or use the toolbar. See Creating a SubFunction to configure inputs and outputs and design the mapping that the SubFunction executes.
Connecting SubFunctions
To invoke a SubFunction in a mapping, drag a SubFunction
from the tree pane onto the mapping area. You can right-click the SubFunction to change the order that inputs are mapped and to update the SubFunction when you change the SubFunction's definition.
See Connecting SubFunctions for procedures to add and connect SubFunctions.
Managing SubFunctions
You can right-click a SubFunction in the tree pane to do the following:
- Change the display order that mapper functions are listed inside a function collection.
- Search for references to a SubFunction.
- Save a SubFunction as an image file.
- Move a SubFunction to another function collection.
- Copy a SubFunction to another function collection. Or, clone a SubFunction, creating a copy in the same function collection.
- Rename a SubFunction.
- Save a SubFunction.
Navigating SubFunctions
See below for other procedures to work with function windows: