Skip to Content
avatar image
Former Member

M:N Selective Mapping

Hi Experts,

I need to map the following Source structue to the Target structure ONLY when

value = 'create'. Could someone tell me how to achive this in PI graphical mapping?

Source Structure >>

Node (0..unbounded)

-value (1..1)

Target Structure >>

Node (0..unbounded)

-value (1..1)

Thanks,

Shobhit

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Oct 20, 2008 at 08:55 PM

    Shobit,

    Map Value to Value directly.

    Value(Change Context to root node) --->eQuals( Constant create) -


    > If then(empty constant) -


    >Node

    The above logic will work.

    raj.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 08:09 PM

    Use the below logic

    {(value equalS create)createIf}->Receiver field

    Thanx

    Aamir

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 08:52 PM

    HI,

    The other way of doing the maping is to do it by using standard function if, equalS, & constant.

    Value -


    > equalS (map the constant with value create) -


    > if ---> then -


    > Value.

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 20, 2008 at 10:04 PM

    Hi

     value (1..1)(context Node)(Source) ->Equals (Constant create) -> if then (Constant empty) -> Node (Target) 

    Same as all above 😊

    Thanks

    Gaurav

    Add comment
    10|10000 characters needed characters exceeded