Skip to content

pgcc/taverna-java-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Taverna Java Client

A Java Client for TavernaServer 2.5.x REST API

Setup

TavernaClient client = new TavernaClient();
client.setBaseUri("http://localhost:8080/TavernaServer-2.5.4/rest");
client.setAuthorization("taverna", "taverna");

Usage

Create a new run

String uuid = client.create("/Users/vitorfs/Documents/Web_Service_example.t2flow");

Get run status

String status = client.getStatus(uuid);

Get expected inputs

ArrayList<TavernaInput> inputs = client.getExpectedInputs(uuid);

Set input value

client.setInputValue(uuid, "Country", "Brazil");
client.setInputValue(uuid, "City", "Juiz de Fora");

Get workflow output

ArrayList<TavernaOutput> tavernaOutput = client.getOutput(uuid);

Set status to a run

client.setStatus(uuid, TavernaServerStatus.OPERATING);
client.setStatus(uuid, TavernaServerStatus.FINISHED);

Start a run

Shortcut to setStatus with Operating parameter

client.start(uuid);

Cancel a run

Shortcut to setStatus with Finished parameter

client.cancel(uuid);

Destroy a run and all related files

client.destroy(uuid);

About

A Java Client for TavernaServer 2.5.x REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages