String table - rows = columns

Hi all,

Could You, please, tell me how can I fill String table (using LOOP) → each record = column, not row!??
P.S. or maybe 2 LOOPs…
Thank You,

Typically loop is used when you have a document list as inputs,

so lets say if you have



to pupulate it into string list… loop on doclist and map it to sting table by providing index index[i,j] where i => count=$iteration-1 (as iteration start from 1) and j = 0, this will populate the fields into one column table… similarly you can work on multi coulmn tables as well.


I have 4 string variables, say var1,var2,var3 and var4.
and i also have a string table.
now inside a loop, the values of this 4 variable will be change,and
i want to store this variable row wise into my string table
in iteration1:
var1 var2 var3 var4
in iteration2:
var1 var2 var3 var4
var1 var2 var3 var4
in iteration3:
var1 var2 var3 var4
var1 var2 var3 var4
var1 var2 var3 var4

I used appendToStringList() for this issue
but then my stringTable multiply column number,
I dont want to increse column number , my column number must be fixed i.e 4 but i expect it should expand rowwise

kindly suggest any solution.

Hi avik,

Option 1:
You could have 4 map steps(no of vars) and in each step map the variables(var1,var2…) to the table by assigning column index to each variable starting from 0 - 3. Assign an incremented value to the row index. In this way you would have one row with 4 columns created every iteration.

Option 2:
You could write a java service for this. Use IDataCursor methods to traverse thru the variables and assign them to your table which will be in the format of a two dimensional array.

I’m sure there migth be many other better ways to do this but you could try one of these options, choose and improvise it.

Hope this helps.


hi Suren,

I follow your first option, and its done.


hi Suren,

I need one help.

I have create one solution using webMethods Designer.
in this solution it has UserInterface and Process file

I also create one CAF -web Application into UserInterface folder
and one BPM into process folder,which name is say sendEmail.process.

now I want to call that BPM, inside the CAF -web Application .view file.

how could i do that, plz send me the steps.


I got the answer