Hi,
I have created some jobs with something around 150+ components. I need to list down all the components I have used in it. I find all the names in the Outliner of Talend. But I need that list in text format. Is there any way to get it. I searched the code section, but didn't find anything useful. Right now I am doing it manually. Since most of the components are used multiple times, I just need to replace the last number in the name.
Any way to get it.
Hi,
So far, we don't have such a feature to list all components used in job.
Feel free to create a new feature or WorkItem jira issue of DI project on Talend Bug Tracker.
Best regards
Sabrina
You can do this using a Talend Job to read the ".item"file for the Job in your workspace. ".item" files are just XML. They hold all of the information about your Job. I was interested in whether your question was possible and knocked up a Job in 5 mins to do this. The result I got is shown below...
tContextDump|tContextDump_1
tContextDump|tContextDump_2
tContextLoad|tContextLoad_1
tExtractXMLField|tExtractXMLField_1
tExtractXMLField|tExtractXMLField_2
tFileInputDelimited|tFileInputDelimited_1
tFileInputDelimited|tFileInputDelimited_2
tFileOutputDelimited|tFileOutputDelimited_1
tFileOutputDelimited|tFileOutputDelimited_2
tJava|tJava_1
tJava|tJava_2
tJava|tJava_3
tJavaRow|tJavaRow_1
tJavaRow|tJavaRow_2
tLogRow|tLogRow_1
tLogRow|tLogRow_2
tLogRow|tLogRow_3
tLogRow|tLogRow_4
tLogRow|tLogRow_5
tMap|tMap_1
tMsgBox|tMsgBox_1
tRESTClient|tRESTClient_1
tRESTClient|tRESTClient_2
First, take a ".item" file that holds data on a Job (workspace\yourproject\process), take a copy and change the name to ".xml". DO NOT change the original file. This is simply done to trick Talend into letting you create XML metadata for the file type. Once this is done, create your XML metadata. I created a very simply piece of metadata and only selected a couple of elements.
Then use a tFileInputXML component with your new metadata and select a ".item" file for a Job you want the info on. Connect it up to a tMap so that you can present the data in any which way you want it.
Then you can connect the tMap to a tLogRow and dump the data out as I did. I screen shot of my job is below....