Choosing a transform to define a conditional mapping

In the Graphical Data Mapping editor, you can define conditional transformations by using a transform or by defining a conditional expression in the transform.

Procedure

Choose any of the following options to configure a conditional mapping in your map:

  1. Use the If transform, the Else if transform, and the Else transform to control the flow of the mapping.

    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.

  2. Use a Custom Java transform or a Custom ESQL transform to provide a condition function

    For more information, see Custom Java and Custom ESQL.

  3. 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 or Defining a Java 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.