You can use a submap to use the same mapping transformation in multiple message maps.
Submaps enable you to use a set of mapping functions in multiple message maps to transform a common set of elements in the input object to the output object.
A submap transform references another map. It calls or invokes a map from a separate file, which can be stored in a library, an application, an integration service, or an Integration project.
A submap can contain components of the message body only, such as global elements and global types. A submap does not contain Properties, message headers, or the Local Environment tree. The element or type must be defined in a message model, and cannot be a user-defined element.
For more information, see Creating a submap.
You edit a submap in the Graphical Data Mapping editor.
The Graphical Data Mapping editor saves submaps as .map files.
For more information, see Graphical Data Mapping editor.
To configure the input and the output to a submap transform, you connect one or more inputs, and a single output.
The input message and the output message must be defined by a user-provided message model in a schema file.
You must have message models for any messages that you want to include in a mapping. You can select the message model from your existing message models in your application, integration service, or library when you create a message map. The mapping facility supports message models that are provided in DFDL schema and XML schema files, or MRM message sets.
If your message model includes user-defined data elements, wildcards, or xsd:any, you can use a Cast function to redefine these data elements to a global type or element from any message schema in your application. For more information, see Casting wildcards in a map.
For more information, see Mapping operations.
A submap can be referenced from other message maps.
When you construct your transformation map, you can invoke a submap to perform a part of the message transformation. The submap must be located in a project visible to the main map that they are called from.
To invoke a submap, you define a Submap transform between the input object and the output object in your message map. This submap can then be used to enable reuse of common transformations for sections of, or the whole of, the message.
For more information, see Calling a submap.
You can use a submap to reuse common data transformations.
You can reuse submaps in other solutions, and in other products that support graphical data maps.