On 08/04/2011 15:26, Andreas Truszkowski wrote:
> Hi,

Hello,

> Is it possible to retrieve information about the port depth of the
> sending worker? I mean if I use:
> public void executeAsynch(final Map<String, T2Reference>  inputs, final
> AsynchronousActivityCallback callback) {
> T2Reference ref = inputs.get(port).getDepth();

I don't think that code can be correct. You are assigning an int to a 
T2Reference.

> }
> the depth of the T2Reference object is equal to the depth of the current
> worker ports and it is not the depth of the emitting worker. That's a
> little bit confusing because I can't perform any checks whether the
> depths are compatible.

You do not need to check that the depths are compatible. The "depth" of 
the T2Reference will be the depth of the input port.

If the service is expecting a single value and you pass a list, then the 
Taverna engine will call the service for each element of the list. If 
the service expects a list and you pass it a single value then Taverna 
will wrap the single value in a list.

Can you give an example of what you want to check?

> Cheers,
> Andreas

Alan

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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