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
- 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.
- 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:
- Left-click Conditions, and the select Add
Else.
An Else condition
is included within Conditions.
- Connect the element Country in the
input message assembly object located under to the Else condition.
- 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.
- Connect the Else condition to the
output element Address.
Results
A message map with three conditions is defined.
What to do next
Continue configuring the SOAP body. Return to Configuring the message map to include the SOAP message.