How do I create input and output ports for Beanshell services?

In Taverna 2.x, when you drag a Beanshell service into the Workflow Diagram, a configuration window will appear. Input and output ports can be created by selecting the input and output port tabs and adding them by name. The other tabs allow you to write a Beanshell script and set any dependencies you require. When you are writing your script, it is vital that the names of the ports match the input and output variables in your script. If you would like to change any of these settings later, right-click on the service and select Edit Beanshell script.

In Taverna 1.7.x, if you right-click a Beanshell processor in the Advanced Model Explorer tree and select Configure beanshell…, a configuration window will appear. Input and output ports can be created by selecting the input and output port tabs and adding them by name. The other tabs allow you to write a Beanshell script and set any dependencies you require. When you are writing your script, it is vital that the names of the ports match the input and output variables in your script.

If you would like to see some examples of Beanshells, you can find many workflows on myExperiment containing them. The Local Services/Local Widgets in Taverna are also Beanshells.