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,

Highlighted
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.

 

Highlighted
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

Highlighted
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

Highlighted
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 GARTNER 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

Talend Cloud Developer Series – Deploying First Job to Cloud

This video will show you how to run a job in Studio and then publish that job to Talend Cloud

Watch Now

Talend Cloud Developer Series – Fetching Studio License

This video will help someone new to using Talend Studio get started by connecting to Talend Cloud and fetching the Studio License

Watch Now

Talend Cloud Developer Series - Introduction

The Talend Cloud Developer Series was created to give you a solid foundational understanding of Talend’s Cloud Integration Platform

Watch Now