In a webMethods flow service I have a document list with (n) documents. Each document have 3 values. Each doc have to be a new row (with 3 columns) in a string table.
How I can do this with webMethods flow?
Input: Output:
DocList column1 column2 column3
DocList[0] row1 var1 var2 var3
var1 row2 var1 var2 var3
var2 .....
var3
DocList[1]
.....
In 1st map I prepared documents for testing.
In 2nd map I added document to list (I have also output prepared)
In loop I used the trick from webMethods loop over Document list (rename) and I prepared index ($iteration
is 1-based, but I need 0-based, so I used substract):
and I used indexing again as in 2nd map (you have to add k1
and k2
manually if you are not working with doc. references):
So this is basically what you want, but I used only 2x2 table for simplicity...