Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

Run a job in Talend from Qlik Sense

Hello
I want in the script to tigger a Talend job
can someone help me how to accomplish this?
I mean what connector do I need to use...

hopefully I'm writing this post in the right forum

I can walk on water when it freezes
Labels (2)
2 Replies
samuel898
Contributor II
Contributor II


@ali_hijazi wrote:

Hello
I want in the script to tigger a Talend job
can someone help me how to accomplish this?
I mean what connector do I need to use... GM Socrates

hopefully I'm writing this post in the right forum


Hello,

Hi there!

To trigger a Talend job from a script, you can use various connectors and methods depending on your specific requirements. Here are some common approaches:

1. Using Talend Trigger Connections
Talend provides several trigger connections to define the processing sequence between jobs or components. These include:

OnSubjobOK: Triggers the next subjob if the current subjob completes successfully.
OnSubjobError: Triggers the next subjob if the current subjob encounters an error.
OnComponentOK: Triggers the next component if the current component completes successfully.
OnComponentError: Triggers the next component if the current component encounters an error.
Run If: Triggers the next subjob or component based on a specified condition1.
2. Using Talend Administration Center (TAC)
If you are using Talend Administration Center, you can schedule and trigger jobs using the Job Conductor. You can add a simple trigger to a task to schedule its execution at a defined date and time2.

3. Using Talend API
Talend provides REST APIs that allow you to trigger jobs programmatically. You can use these APIs in your script to start a job. Here’s a basic example using Python:

import requests

url = "http://your-talend-server:8080/talend/job-execution"
payload = {
"jobName": "your_job_name",
"context": "Default"
}
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer your_api_token"
}

response = requests.post(url, json=payload, headers=headers)
print(response.status_code)
print(response.json())

. Using Talend Job Caller
You can generate a job-based trigger directly from Talend Studio. This trigger can be used to initiate the data integration process defined in the job3.

Example Workflow
Create the Job in Talend Studio: Design your job and ensure it’s working as expected.
Configure Trigger Connections: Use the appropriate trigger connections to define the job execution sequence.
Deploy the Job: Deploy your job to the Talend server or Talend Administration Center.
Trigger the Job: Use the Talend API or Talend Administration Center to trigger the job from your script.

Hope this will help you.
Best regards,
samuel898

ali_hijazi
Partner - Master II
Partner - Master II
Author

Hello
thank you for your reply
If I want to go with the Talend API approach ; shall I use the Qlik REST connector?
if this is it where do I write the above parameters that you mentioned?

I can walk on water when it freezes