Procedure
Choose any of the following options to configure a conditional
mapping in your map:
- Use the If transform, the Else if transform, and
the Else transform to control the flow of the mapping. For more information, see Configuring an If, Else if, and Else transform in a message
map.
If, Else if, and Else
operate as a group of conditional transforms. The condition is applied to the input element of the
conditional transform. If the condition is satisfied, the nested transform within the conditional
transform is run.
- Use a Custom Java transform
or a Custom ESQL transform to provide
a condition function
For more information, see Custom Java and Custom ESQL.
- Define a conditional expression in a transform to determine
when the transform is applied bu configuring the Condition tab
of the transform.
For more information, see Defining an XPath conditional expression for a transform.
Note: If you use
a condition to optionally create one or more child output elements
within a complex element, check that the condition is on the transform
targeting the whole complex element, not just a child. If the conditional
transform only targets a child, the folder element within the
complex element will be created in the output before the condition
is evaluated.
What to do next
For more information about mapping transforms, see
Transform types in the Graphical Data Mapping editor.