Skip to Content
avatar image
Former Member

SplitByValue

Hi,

I created a multi-mapping with following messeage types

mt_source to mt_hardware and mt_software

mt_source exist once and include hardware and software nodes (occurence: 0..unbounded). I use splitByValue to create an own message for every occur of a node, but if no hardware is given, it should NOT create a target message. I tried do it with exist and createIf, but in mapping test the nodes exist (but empty), so he delivers true at the exist-check.

Is there a simple solution for this or do I have to create a own java mapping where have to use mapWithDefaultValue after an own check?

thanks

chris

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 07, 2006 at 02:09 PM

    Hi ,

    You can write a small User defined function to check the value of the empty node exists in the source structure.

    If the node exists and doesnt have any valid value ( if it is null ) then dont create a target node .

    Nanda

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 07, 2006 at 02:13 PM

    Hi Christian,

    I hope this weblog is very helpful for your requirement

    /people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 07, 2006 at 02:16 PM

    Hi,

    Just check this blog..

    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

    and check this Post

    attn-prakash-message-mapping

    It will help u.

    Regard

    -


    Sachin

    Add comment
    10|10000 characters needed characters exceeded