In another scenario, given the following structures
Source:
RecordList
—@indicator
—element1
—element2
—element3
Destination:
Record Price
—record UnitPrice
—recordList PriceBasis
------element1
------element2
------element3
I loop through source record list (in array) destination Record Price | recordList PriceBasis (out array)
branch on source record element @indicator
map element 1,2,3 to destination Record | recordListPriceBasis| element1,2,3 if label is = 001
this works, but in the source I have two index 0 and 1. for the record index 0, the @indicator is = 001 and for the record index 1, the @indicator is = 002. After running the flow steps (above), my destination recordList has two index 0 and 1. Record Index 0 has the mapped element values as expected, but unexpectly, I have record index 1, which is null. I am guessing the loop is creating this second record index and initalizing it to null because there is no map step defined for the branch that matches the value of @indicator in the second source record index.
How can I avoid creating null record indexes in the destination recordlist when the source record index of the source record list has not matching map step?
–steve
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services