Calling the MetaServlet REST Web service to execute a task
In the following scenario, a Job created in Talend Studio invokes the MetaServlet REST Web service to execute a specific task in Talend Administration Center.
Before you begin
Make sure an existing task is available in the Job Conductor page of Talend Administration Center.

Dropping and linking the components
Procedure
Configuring the context variables
You must define the variables that will be used to call the MetaServlet REST Web
service.
Procedure
Configuring the Routine
You must define a user routine that encodes the MetaServlet parameters in base64
to be transmitted to the REST API. This routine will be called in the Job.
Procedure
Configuring the components for calling the MetaServlet REST Web service to execute a task
Procedure
Results
The console shows that the tREST component sends an HTTP request to the server end to run the specified task, and that the task has been executed without errors.

In the Job Conductor page of Talend Administration Center, the status of the task is ready to run.
