Skip to Content
0
Former Member
May 17, 2010 at 05:36 AM

Mapping for field which appear more than once.

23 Views

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.