Value Mapping (Flattening) Functoid Reference
Use the Value Mapping (Flattening) functoid (
) to allow a Boolean value to control whether another value gets mapped, flattening it in the process.
Parameter 1: Either of the strings "true" or "false", generally from the output of some other Logical functoid or from a variable Boolean field in the input instance message.
Parameter 2: A value that is output if parameter 1 is "true". This value can be from a link from a node in the source schema that represents simple content, the output from another functoid, or a constant input parameter.
Output 1: The value of the second parameter if the value of the first parameter is "true". If the value of the first parameter is not "true", the corresponding element or attribute in the output instance message is not created.
Determine whether to use the Value Mapping functoid or the Value Mapping (Flattening) functoid based on the following characteristics of the relevant portions of the source and destination schemas:
-
Value Mapping. When both the source and the destination schemas define parallel repeating structures between which the relevant data is mapped.
-
Value Mapping (Flattening). When the source schema defines a repeating structure and the destination schema defines a flat structure, such that different instances of the repeating structure in the source schema are intended to be mapped into unique elements in the flat structure in the destination schema.
Note |
|---|
| The Looping and Value Mapping (Flattening) functoids should not be used together. If both are used together, it results in a compiled map that assumed there is no source looping dependency for the target nodes that are below the Looping functoid. |
Tasks
How to Add Value Mapping (Flattening) Functoids to a MapReference
Advanced Functoids ReferenceConcepts
Value Mapping (Flattening) FunctoidValue Mapping Functoid
Note