I trying to map a deeply nested array onto another one and am facing problems. This is a sample of the array.
Level 1 […]
–Level 2 […]
----Level 3 […]
------Level 4 […]
This array has to be mapped onto another array of similar structure. I’ve tried the following.
First without using the loop statement at all, if I directly map elements, I get an output upto level 2 correctly. When I try to set up nested loops, I get null values at level 3 and no further.
For the loops, when setting up the in-array, I use the sub-level within. I then set the out-array in a similar fashion. Now, for the loop properties, I see a default index of 0 gets entered. I played around with that for a while as I thought it might be the problem. However, I can’t save a variable ($iteration) as this index.
Can someone help. I’m attaching two snapshots of loop structures I’ve tried. Structure2 demonstrates the map structure that at least produced ‘Level 3’ as an enumerated object type of the right count for the first ‘Level 2’ record. Values were null however.
Structure 1
Structure 2
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB