How to modify a value of a string list inside a loop

Hi,

I am new WM. I trying sort logic with webMethods.
I can able to find the least element of a string list but couldn’t able to do sorting.
In one map step I want to replace the value of a string list as zero inside a inner loop. I can able to perform this step…but during the execution of the outer loop …the old value of string list only exists not the new value which I have assigned inside the inner loop.

Can anybody help me out in this issue??

Manju.

Are you assigning the string list as both the input and output array for the loop?

Jason

Hi,

I am using input array in the loop…
And there is a separate array for output

Manju

Typically the array whose values are changing should be the output array. Personally, if I was doing any sorting I’d probably write a Java service for it - that way it executes faster than FLOW would, and you don’t really run into the funky Array handling with the Loop command in FLOW.

Jason