Hi Stian, On Wed, Oct 20, 2010 at 12:29 PM, Stian Soiland-Reyes <[email protected]> wrote: > You need to implement this method: > > protected List<? extends Object> getIdentifyingData() { > // FIXME: Use your fields instead of example fields > return new ArrayList<Object>(); > }
Ah! > Now both your service descriptions claim they are uniquely identified > by [] - and so only one of them will be added - the second will be > considered a duplicate as service descriptions are kept in a Set. The > class of the service description is deliberately not considered - so > that if you added MyOwnServiceDescription that used the same > getIdentifyingData() as say the wsdl-activity-ui - then you could > avoid duplicate service entries for the same service. > > We should probably make it a fault to return [] from getIdentifyingData(). Yes, please consider that a feature request... should I file it? Can I also request an small patch in the archetype source, to add something like (as comment) to the template for getIdentifyingData(): // if your activity does not have fields, you can use: // return Arrays.<Object> asList(this.getName(), this.getPath()); Egon -- Dr E.L. Willighagen Postdoctoral Research Associate University of Cambridge Homepage: http://egonw.github.com/ LinkedIn: http://se.linkedin.com/in/egonw Blog: http://chem-bla-ics.blogspot.com/ PubList: http://www.citeulike.org/user/egonw/tag/papers ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ 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/
