Once the JSON arguments are base-64 encoded, they can be passed as the sole
parameter to the HTTP request. If you are integrating with Talend, your application might be written in regular
Java, or possibly some other language, which should not cause any issues since the HTTP
and base-64 are interoperable standards.
Before you begin
To invoke the Talend Administration Center API, the JSON objects
must be base-64 encoded.
Procedure
-
If you happen to be integrating with a Java application, use the following
Apache Commons Base64 class method:
org.apache.commons.codec.binary.Base64.encodeBase64()
-
If you are using Talend, use the tLibraryLoad component to add the Apache
Commons library.
-
Retrieve the MetaServlet Job archive by downloading job_invoking_tac_api.zip to invoke the Talend Administration Center API from the Talend Job.
It uses the
encodeBase64() method within a
tMap prior to the
tRESTclient invocation of the
Talend Administration Center API operations. Three operations are invoked, and each operation is
invoked within its own SubJob. Each SubJob starts by initializing the
request from the Context Parameters:
- The first invocation looks up the taskId based on
the human readable Job name.
- The second invocation uses the taskId returned from
the first invocation to trigger the Job.
- The third invocation uses the returned
execRequestId handle as the argument to the
getTaskExecutionStatus operation to monitor the
Job status.