Configuring the Else condition in an If, Else if, and Else transform

Create and configure an Else condition after you define the If condition and optionally more Else If conditions. The If, Else if, and Else always finishes with an Else condition. This is the condition that runs when none of the other conditions are true.

Before you begin

  1. Define the If condition of the If, Else if, and Else transform. For more information, see Configuring the If condition in an If, Else if, and Else transform.
  2. Define the Else If conditions of the If, Else if, and Else transform. For more information, see Configuring the Else If condition in an If, Else if, and Else transform.

About this task

The Else condition is the path followed by addresses whose country is different from Canada or UK. In the scenario, it is the path that evaluates to true when a US address needs to be mapped.

Procedure

Complete the following steps to create and configure the Else condition of an If, Else if, and Else transform:

  1. Left-click Conditions, and the select Add Else.

    This figure shows the If and Else If conditions within a Conditions container, and on top of the container the options Add Else If and Add Else that you can select.

    An Else condition is included within Conditions.

    This figure shows the three conditions, that is, If, Else If, and Else within the Conditions container.

  2. Connect the element Country in the input message assembly object located under SOAP_Domain_Msg > Body > SaveAddress > Person > Address to the Else condition.
  3. Connect the element Address with a derived type of USAddress to the Else condition.

    When you define the connection to the Else condition, a message displays to explain that you must transform the input and output elements within the nested map that is created where the input object is an address of type USAddress, and the output object is an address of type Address. You can click Click Here to access the nested map, or you can click anywhere on the message map to continue configuring the Else condition.

    This figure shows the message map after you define the connections. It includes the pop up message where it explains that you must transform the input and output elements within the nested map that is created.

  4. Connect the Else condition to the output element Address.

Results

A message map with three conditions is defined.

This figure shows the message map with three conditions, an If condition, an Else If condition, and an Else condition.

What to do next

Continue configuring the SOAP body. Return to Configuring the message map to include the SOAP message.