A Java Client for TavernaServer 2.5.x REST API
TavernaClient client = new TavernaClient();
client.setBaseUri("http://localhost:8080/TavernaServer-2.5.4/rest");
client.setAuthorization("taverna", "taverna");
String uuid = client.create("/Users/vitorfs/Documents/Web_Service_example.t2flow");
String status = client.getStatus(uuid);
ArrayList<TavernaInput> inputs = client.getExpectedInputs(uuid);
client.setInputValue(uuid, "Country", "Brazil");
client.setInputValue(uuid, "City", "Juiz de Fora");
ArrayList<TavernaOutput> tavernaOutput = client.getOutput(uuid);
client.setStatus(uuid, TavernaServerStatus.OPERATING);
client.setStatus(uuid, TavernaServerStatus.FINISHED);
Shortcut to setStatus with Operating parameter
client.start(uuid);
Shortcut to setStatus with Finished parameter
client.cancel(uuid);
client.destroy(uuid);