TCM Automation Docs

Java SDK reference

Maven artifact com.itmitra.tcm:tcm-sdk:1.0.0. Built on java.net.http.HttpClient with Jackson for JSON. Java 17+.

Install

pom.xml
<dependency>
  <groupId>com.itmitra.tcm</groupId>
  <artifactId>tcm-sdk</artifactId>
  <version>1.0.0</version>
</dependency>

Construct a client

Client client = new Client(
        System.getenv("TCM_BASE_URL"),
        System.getenv("TCM_TOKEN"));

Methods

Method
client.createRun(input)
client.getRun(runId)
client.listRunExecutions(runId)
client.recordResult(execId, input)
client.uploadAttachment(execId, name, ct, bytes)

Errors

Non-2xx responses throw ApiException with public status and code fields.

try {
    client.getRun("…");
} catch (ApiException e) {
    if (e.status == 401) { /* bad / revoked token */ }
}