I have input coming from source as records. Record-1 is xyz, record 2 is abc…
I need to merge all these values into a list by checking few conditions in groovy.
How do I achieve that. Finally output should come in groovy when reading all records is over.
like [xyz,abc,pqr]
But I am getting code output as
Output for record-1 [xyz]
output for record2 -[abc] and so on
Can someone please help me how its possible?