Extracting context parameters for tasks programmatically from Talend Cloud

Highlighted
Six Stars

Extracting context parameters for tasks programmatically from Talend Cloud

Is there a way to extract all Tasks defined in an Environment / Workspace with the context parameters/values? 

I'm trying to build an audit and downstream impact and need to know that

 

 

Thanks,

Community Manager

Re: Extracting context parameters for tasks programmatically from Talend Cloud

You can do this using the backend files BUT you must be careful when doing this. The backend files are just XML files. The ones you want to look at are the .item files. You can find your jobs inside the workspace/{project}/process folder. To do this safely I would copy your workspace folder to another location (to ensure you don't accidentally change the original files). Then all you need to do is recursively look through your process folder (you can use a tFileList for this) and then read the files using an XML component, looking for a path of  talendfile/context/contextParameter. All of your context variables and their original values will be stored there.

 

In fact, you can find out absolutely anything about the jobs you have built using these files. You just need to learn how to use and to NEVER EDIT THEM.

 

Six Stars

Re: Extracting context parameters for tasks programmatically from Talend Cloud

But that would be in my local Studio workspace right?

What I'm looking for is the Task created in Integration Cloud (Talend cloud) that's using that job that was published to the cloud what context values is using

Four Stars

Re: Extracting context parameters for tasks programmatically from Talend Cloud

But the items file is not an xml extension and we would be unable to use it to read thru tFileInputXML component.

 

I am using Talend 6.3

 

Regards,

Prasanna

Community Manager

Re: Extracting context parameters for tasks programmatically from Talend Cloud

A file is an XML file if it contains XML, it doesn't really matter about the file extension. 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog