4.2. Registering the repository with the Taverna SPI registry

Before using the API, the Taverna plugin registries need to provided with the previously initialised repository. This is achieved with a call to:

TavernaSPIRegistry.setRepository(Repository repository);

You are now ready to interact with the Taverna API. The following example demonstrates a simplified approach to using the WorkflowLauncher, and further details on using WorkflowLauncher can be found by reading the original documentation. Note that you normally wouldn't run this example program as it is, as the executeworkflow script of the Taverna distribution should do the job.