On 20/10/2010 09:32, Egon Willighagen wrote:
> Hi all,
Hello,
> I am trying to get two activities visible in the workbench:
>
> public void findServiceDescriptionsAsync(
> FindServiceDescriptionsCallBack callBack) {
> List<ServiceDescription> results = new
> ArrayList<ServiceDescription>();
> ServiceDescription service = new OPSINServiceDesc();
> service.setDescription("Convert IUPAC names into CML");
> results.add(service);
> callBack.partialResults(Collections.singletonList(service));
> service = new RecognizeEntitiesServiceDesc();
> service.setDescription("Extract chemical entities from a plain
> text");
> results.add(service);
> callBack.partialResults(Collections.singletonList(service));
> callBack.finished();
> }
>
> But I only get either of the two to show up, not both...
>
> What can be the reasons why I do not get both activities to show up?
I am not sure why. However, you could try
callback.partialResults(results);
rather than do it for each service.
> The full source is available at:
>
> https://bitbucket.org/egonw/oscar4-taverna/src
>
> Any tip welcome! Thanx,
>
> Egon
Alan
------------------------------------------------------------------------------
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/