cancel
Showing results for 
Search instead for 
Did you mean: 

message mapping

rohit_goel
Participant
0 Kudos

i have three elements at source side having cardinality as 0..1 each and I have to map them with the same target having cardinality as 0..1.

How to do that.Do i need to use duplicate subtree option?

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi,

It seems that you have one field on target side having cardinality as 0--1 and it has to be mapped to three different fields from source structure. Is that correct?

In such a case, I think you will have to try the option of duplicate subtree on the target side.

Bhavish

Former Member
0 Kudos

Hi Rohit,

is your target strucutre would be populate with the values of three of source into single record or as three records.Give an example of how your source & target structres are present.

Cheers

Veera

Former Member
0 Kudos

Hi Rohit,

You can do the direct mapping...like 1---->1

and meanwhile if you could provide your source and target...sothat we can try to give you the solution.

Regards,

Ramana.

Former Member
0 Kudos

go for 1:1

try useOneAsMany if a field that only occurs once needs to be replicated as often as another field occurs in the outbound message so that the fields can be written to the target structure in pairs as a record.

Message was edited by:

Sunil Ojha

Former Member
0 Kudos

hi u ar asking about mapping.

mapping we can do 2 way.

1)structre mapping: if soucre and target has same structre drag total str into target

2)field mapping: In this corresponding fields only will do.

Award points if helpful.

Brahma.

former_member335553
Active Contributor
0 Kudos

Hi

U have cardinality of 0 ..1 so the elements can occur once so it should be one to one mapping . NO need for duplicating subtree

rohit_goel
Participant
0 Kudos

but in that case i can map only one source field

justin_santhanam
Active Contributor
0 Kudos

Rohit,

If its same then map directly!!! If this is not ur reqmt, give the source and target with sample example.

raj.

prateek
Active Contributor
0 Kudos

Are elements in both the structure at the same level?

If yes, then do direct mapping 1:1. Does ur scenario has some other business requirement?

Regards,

Prateek

rohit_goel
Participant
0 Kudos

Are elements in both the structure at the same level?

If yes, then do direct mapping 1:1. Does ur scenario has some other business requirement?

Yes,structures are at same level.How can i do direct mapping without duplicating subtree?

prateek
Active Contributor
0 Kudos

Yes. without duplicating the tree u can map.

U already said that there are 3 source fields. So map each field with its corresponding target field. Thats it.

Regards,

Prateek

rohit_goel
Participant
0 Kudos

Prateek they have to be mapped to the same target field..