You can find out the bound variables in the beanshell using something like:
namesArray = this.namespace.getVariableNames();
List values = new ArrayList();
List names = new ArrayList();
for (int i = 0; i < namesArray.length; i++) {
if (!namesArray[i].equals("bsh")) {
names.add(namesArray[i]);
values.add(this.namespace.getVariable(namesArray[i]));
}
}
which will populate two output ports (names and values) with the names
and values of single depth input ports.
Alan
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/