Identifier Instance Use Case

Document created by sheng_liao462475 Employee on Nov 30, 2016Last modified by chris_stevens on Jan 6, 2017
Version 3Show Document
  • View in full screen mode

Use Case 

Output phone number based on phone number type.

Source data:

<Person>
  <PhoneNumbers>
    <PhoneNumber>
      <PhoneNumber>1234</PhoneNumber>
      <PhoneNumberType>Home</PhoneNumberType>
    </PhoneNumber>
    <PhoneNumber>
      <PhoneNumber>5678</PhoneNumber>
      <PhoneNumberType>Mobile</PhoneNumberType>
    </PhoneNumber>
  </PhoneNumbers>
</Person>

Output:

<Company>
  <Person>
    <PhoneNumbers>
      <PhoneNumber>
        <PhoneNumber>1234</PhoneNumber>
        <PhoneNumberType>Home</PhoneNumberType>
      </PhoneNumber>
      <PhoneNumber>
        <PhoneNumber></PhoneNumber>
        <PhoneNumberType>Work</PhoneNumberType>
      </PhoneNumber>
      <PhoneNumber>
        <PhoneNumber>5678</PhoneNumber>
        <PhoneNumberType>Mobile</PhoneNumberType>
      </PhoneNumber>
    </PhoneNumbers>
  </Person>
</Company>

 

Approach

Step 1 - Put the source data in a message shape.

Step 2 - Import source XML profile from source data.

Step 3 - Change Max Occurs to unbounded for PhoneNumber segment and add Qualifiers to PhoneNumberType.

 

 

 

Step 4 - Add Identifier Instance for PhoneNumber at parent element level.

 

 

Step 5 - Create target XML profile and follow step 3 - step 4 to add identifier instance for PhoneNumber segment.

 

 

Step 6 - Create a map, the mapping should be like this.

 

Note that there is a default value (white space) setup for each phone number, in case there is no phone number for certain phone number type.

Attachments

    Outcomes