Skip to Content
avatar image
Former Member

Mapping

Hi everyone,

I have a following scenario..

Source Message

<Maintag>

<tag1>

<number>1</number>

<message>This is</message>

<Date>03/27/2006</Date>

</tag1>

<tag2>

<num>1</num>

<mes>crazy</mes>

<Time>11:30</Time>

</Maintag>

Target Message

<Result>

<number>1</number>

<message> This is crazy</message>

<Date>03/27/2006</Date>

<Time>11:30</Time>

</Result>

How can I do this mapping? Can I do it in GUI or need Java mapping??

Thanks for the suggestions...

Thilothama

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 29, 2006 at 03:28 AM

    Hi,

    Its not required to go for Java mapping. Graphical mapping can slove problem. If standard functions are not statisfying your requirement, a small user defined function to chk the number and then to concat message will work.

    -Kavita

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 29, 2006 at 12:27 AM

    Hi Thilothama,

    If you have same number of tag1 and tag2 nodes in source message, you can use the standard function concat on <message> and <mes> nodes. And assign the <number>, <date> and <time> directly to the result.

    praveen

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I have used useOneasMany and yet to test it for my different scenarios..I will update once I have done it...Thanks for the replies and help

  • avatar image
    Former Member
    Mar 29, 2006 at 03:38 AM

    hi,

    You can solve this using graphical mapping.

    Use the if then clause.

    If <number> isequal to <num> then, map <number> to <num>, source message to <mes>, source time to <Time> etc.

    Regards,

    Smitha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 29, 2006 at 03:28 AM

    Hi Thilothama,

    You can use the user defined functions present.

    ->use the equals function to check if the two numbers are equal.

    -> give the output of the equals step to the input of an if without else function.

    So then the mapping will take place only if the two numbers are the same.

    Hope this helps.

    Regards,

    Jesse.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 29, 2006 at 04:12 AM

    Please refer to the following one

    .issues-on-multiplemapping

    This is similar to your requirement....

    Regards

    KNS Kumar

    Add comment
    10|10000 characters needed characters exceeded