> Hello,
>
>    
>> I'd like to dynamically read all the input port names of a beanshell
>> service from inside that same service and then get the corresponding
>> values (reflection-like). I know that the ports are mapped to
>> string/list variables with the same names, but is there a list or an
>> array that contains all the port names and values?
>>      
> I don't think there is at the moment.  All the ports are mapped
> separately.  The list of ports is kept within the beanshell service
> but not exposed within the beanshell script interpreter.  It would not
> be difficult to do that but the implications might be troublesome.
>
>    
>> The beanshell is
>> supposed to be easily extendable with new ports.
>>      
> If you added something into the list of ports (which doesn't exist)
> within the beanshell script, then they would not appear as ports of
> the service, unless something else was done.
>
>
>    
I think you got me wrong. I want to be able to add a new port in the 
"input ports" list in the "Edit Beanshell script" dialog and then get 
the port name and the value in the script. Something like the "args" 
array in a main method, but ideally also with the names of the single 
ports, which I don't know at runtime.

Dennis

------------------------------------------------------------------------------
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/

Reply via email to