cancel
Showing results for 
Search instead for 
Did you mean: 

M:N Selective Mapping

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

justin_santhanam
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Raj Buddy

Welcome back to SDN:)

Thanx

Aamir

justin_santhanam
Active Contributor
0 Kudos

Thanks Buddy, it's really nice to see all our folks. really had tough time in the past, I thought I would spend sometime with our SDN friends....

Take care..

raj.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

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

Same as all above

Thanks

Gaurav

Former Member
0 Kudos

Thanks Raj / Gaurav,

Problem solved!!!

Cheers

Shobhit

Former Member
0 Kudos

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

Former Member
0 Kudos

Use the below logic

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

Thanx

Aamir