Skip to Content
avatar image
Former Member

Mapping problem

Hi PI Experts,

There are two different elements (1...unbounded) on the source side which have to be mapped to the same element (1...unbounded) on the receiver side. How do i achieve this in mapping ?

For example,

I want to achieve the following through mapping:

Source Message Structure is:

Detail1 (element 1... to unbounded)

Name (subelement 1)

Age (subelement 1)

Detail2 (element 1... to unbounded)

Name (subelement 1)

ID (subelement 1)

Target message Structure is:

Details (element 1... to unbounded)

Name (subelement 0..1)

Age (subelement 0..1)

ID (subelement 0..1)

How to do this mapping in PI ?

Regards, Gaurav.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 06, 2010 at 08:36 AM

    > There are two different elements (1...unbounded) on the source side

    Are the elements linked? Is the order the same?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If Detail1 & Detail2 are are not coming in the successive orders in source structure, then you can use sortByKey function for mapping.

      -Supriya.

  • Oct 06, 2010 at 08:36 AM

    Create target element once again,like right click on target elemebt select duplicate structure, that means now you have two same elements in target, juts map it.,

    Regards,

    raj

    Add comment
    10|10000 characters needed characters exceeded