On Mon, Apr 11, 2011 at 09:30, Andreas Truszkowski <[email protected]> wrote: > 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.
Do I understand you correctly in that you store data in your own caching system - even if the data was a list of items? So if a service outputs the depth1-list ["a", "b", "c", "d"] you instead just return a single uuid - or is it that your return a list of 4 UUIDs? > 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. A T2Reference will always have a depth, but it will be the same as it was registered with. So for instance a reference to a list of depth 2 will always have depth 2. Note that literal values (such as strings) always have depth 0. Errors can have any depth, as they are replacement for lists or single values. What you might see is the implicit iterations - if you have service A giving out a list of UUIDs (depth 1) - but service B receives a single item (depth 0), it will just receive one of those UUIDs - you no longer know what list it was in, as Taverna has iterated over that list for you. (After all, the service didn't ask for depth 1). -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ 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/
