Hi,

You cannot in general push objects through input and output ports in 
Taverna - it generally understands binary data and strings (and list of 
binary data/strings, and lists of list of binary data/strings, etc.) only.

However, there is an API Consumer service in Taverna that can 
receive/produce JAVA objects. This is currently the only service type in 
Taverna that does that sort of thing (if we do not count BioMoby that 
also deals with special Moby objects). API consumer does that by making 
use of 
net.sf.taverna.t2.reference.impl.external.object.VMObjectReference, 
which is used to used to refer to objects  in the local virtual machine. 
So, if you are writing your own service plugin you could have a look at 
api-consumer's code  to see how it is done and we can give you some 
pointers. Again - your service would only be able to consume objects 
from API consumer and your own services as other services simply do not 
output objects but strings and binary data. Also, other services would 
not be able to consume objects you produce as they simple do not 
understand them.

Regards,
Alex

Andreas Truszkowski wrote:
> Hello together,
>
> I have a question concerning the data types I can transport via the 
> output (input) ports. If I try something like this:
>
>         MyClass myObject = new MyClass();
>         T2Reference containerRef = referenceService.register(myObject, 
> 0, false (or true), context);
>         outputs.put(this.RESULT_PORT, containerRef);
>
> the following exception is thrown if I try to start the workflow:
>
>        net.sf.taverna.t2.reference.ReferenceServiceException: Failed to 
> register object MyObject
>
> Are there any steps nescessary to make the object eligable for registration?
>
> Regards
> Andreas
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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/
>   

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