java - Mule: Using POJOs on a LinkedList variable -


i've flow performs "for each" loop, extracts current loop data , pases connector. connector returns different class of pojo.

now, set put variable of type linkedlist, , enrich said variable each loop on foreach. understand, linkedlist has element each of different pojos connector passed.

my question is, when for-each process ends, , variable enriched, how can extract values it. or approach incorrect? if print client (rest client) results, shows linkedlist... don't don't know there. i'm thinking if there way transform json, or approach best case.

thank much!

after lot of trial , error found way, don't know if proper one:

#[mylinkedlist[mylinkedlist.size()-1].getxxxxx()] 

that brings info, can set number of element of list, , works fine. right approach, or there's better (cleaner, efficient, standard, looking)?

thanks!


Comments