cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping for field which appear more than once.

Former Member
0 Kudos

Hi experts.

My source and target structure is:

Field1

Field2

Field3

___Child1

___Child2

___Child3

Field4

Field3 may appear a few times in the source message.

For example:

Field1

Field2

Field3

___Child1

___Child2

___Child3

Field3[1]

___Child1

___Child2

___Child3

Field3[2]

___Child1

___Child2

___Child3

Field4

I need to pass to the target structure the "Field3" who's "Child1" is greater than 5 and "Child2" is greater than 10 and "Child3" is greater than 15.

My problem is that the condition is executed only once for the first "Field3",

and if the check returns

"True" all the "Field3" are copied.

if "False" is returns no one of the "Field3" is passed.

How should i hold the context for it, in order each of the "Field3" elements passes the condition?

Regards Max.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

map required Field3& Child1 field with the target with the required conditions and set the context of both to the higher level.

Regards,

NJ

stefan_grube
Active Contributor
0 Kudos

> How should i hold the context for it, in order each of the "Field3" elements passes the condition?

Assign the context of Child(n) to parent of Field3

All child(n) elements should be in same context.