AnsweredAssumed Answered

Hi, How to store the field value in an array for future processing.?

Question asked by GirishRadhakrihsna1371 on Sep 24, 2013
Latest reply on Dec 3, 2013 by Adam Arrowsmith
Hi,

How to store the field value in an array for future processing.

Ex : Suppose a input flat file contains 10 records and we want to store a particular field value in an array for future processing and populate all the stored ( i.e 10 different value's ) at once in output.

We created some sample groovy code(mentioned below) for achieving this, but the problem is, every time we ran the process it was fetching only the last value in the list and populated. Could you please help us in achieving this scenario with an example.
************************************************************
myList = [1776, 1]
for( int i = 0; i < myList.size(); i++ )
{
SSN = myList[i]
}
***************************************************************
In the example above, each time the output is 1 i.e the last element of the list.



And also, please specify if any build function available for implementing arrays within Boomi ?

Outcomes