One Star

[resolved] How to get the job id for a job

I want to launch a job remotely via the webservice. For JSON, I have to specify the job id, which is a number. How can I get the associated number for a job? Thank you
1 ACCEPTED SOLUTION

Accepted Solutions
Seventeen Stars

Re: [resolved] How to get the job id for a job

I guess you mean the task-ID. The task-id can be seen in the information section of a task (mostly at the bottom).
I suggest avoid using the task-id because if one recreates the task new with the same name and exactly the same functionality you will lose the connection because this task has a new id.
There is also a web service to gather the task-id by the task-label.
You could also use the existing component tRunTask which does everything for you.
http://www.talendforge.org/exchange/index.php?eid=894&product=tos&action=view&nav=1,1,1
1 REPLY
Seventeen Stars

Re: [resolved] How to get the job id for a job

I guess you mean the task-ID. The task-id can be seen in the information section of a task (mostly at the bottom).
I suggest avoid using the task-id because if one recreates the task new with the same name and exactly the same functionality you will lose the connection because this task has a new id.
There is also a web service to gather the task-id by the task-label.
You could also use the existing component tRunTask which does everything for you.
http://www.talendforge.org/exchange/index.php?eid=894&product=tos&action=view&nav=1,1,1