Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I assume that esabot still maintains the documentation so can these components please be added?
Hi JamesB,
tArrayOut and tArrayIn operate in pairs and provide temporary storage within a job. I assume that you've already added the components via https://community.talend.com/t5/Archive/How-to-install-set-tHash-in-TOS-2-4-0/td-p/77934.
Firstly, you must flow data from another component into the tArray and match the schema to the source component. This will put the data into an array (the Destination) within the job.
Then use a tArrayIn and make sure that the Destination matches the Destination from tArray. Another trick is to copy the schema of the tArray using the clipboard and then paste into the tArrayIn schema. Then add subsequent components that flow from tArrayIn.
I tend to use tArray when I need to pass data between sub jobs.
Although these components have been established for some time I have never seen them documented. I assume that esabot still maintains the documentation so can these components please be added?
Cheers,
c0utta
java.util.List<out_IStruct> array_tArray_1 = new java.util.ArrayList<out_IStruct>();
globalMap.put("array_tArray_1", array_tArray_1);
java.util.List<OnSubjobOkStructarray_tArray_1> list_tArrayIn_2 = (java.util.List<OnSubjobOkStructarray_tArray_1>) globalMap
.get("array_tArray_1");
if (list_tArrayIn_2 == null) {
list_tArrayIn_2 = new java.util.ArrayList<OnSubjobOkStructarray_tArray_1>();