Hi Alan, Am 08.04.2011 15:45, schrieb Alan R Williams: > > T2Reference ref = inputs.get(port).getDepth(); > I don't think that code can be correct. You are assigning an int to a > T2Reference. > Indeed. That mistake happens if you use uncarefully copy&paste. > 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? > OK you are right. Next time I should first explain the circumstances. I have written my own caching system to cache the data on harddisk which is sended between the ports. (It`s much faster than storing the data in the derby database. Also the database behaves strange for huge amount of data.) So I only pass around a UUID object to track where the cached data is stored. Unfortunately due to this I loose every information of the output port depth.
But I have now written a workaround. The port depths are now saved in a hashmap and so I can fetch them from everywhere. However it would be more elegant if it would be possible to get the information from the T2Reference object instead. Cheers, Andras > 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/ > ------------------------------------------------------------------------------ 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/
