Thank you Stian.

Then, I will replace nulls by a default value.

Julián.


2013/8/9 Stian Soiland-Reyes <[email protected]>

> You can register a list containing an Exception (effectively
> registering an Error Document) instead of null, if you like - this
> would force later services to bail out if they iterate and come to a
> null. If you don't want them to bail out, you'll have to come up with
> a special or default value, say the empty string "".
>
> See http://www.myexperiment.org/workflows/1009 for example.
>
>
> Not allowing null is intentional, because it is ambiguous what would
> be the expected behaviour for services later in the workflow that
> receive null as an input - different types of services might fail in
> various ways or (perhaps unintentionally) treat it as a default value.
>
> Registering an error on the particular port (or list item) in question
> will minimize the impact of the missing value in further execution,
> while keeping the remaining items in the expected position.
>
> However, some WSDL SOAP services do support null as an input, these
> can be invoked by passing the string "xsi:nil" - see
>
> http://www.taverna.org.uk/documentation/faq/building-workflows/how-to-pass-null-to-a-web-service/
> .
> (Note! Other kinds of services would still see the string "xsi:nil"!)
>
>
>
> On 9 August 2013 12:43, Julián Garrido <[email protected]> wrote:
> > Hi all,
> >
> > If I try to assign to an ouput port an arrayList that includes null
> values
> > then register method throws a NullPointerException. Is there any way to
> deal
> > with this?
> >
> > simpleRef2 = referenceService.register(arrayWithNullValues,1, true,
> > context);
> > outputs.put(name, simpleRef2);
> >
> > I wonder if it is a desired behavior that I can not return a list with
> null
> > values.
> >
> > regards, Julian
> >
> >
> ------------------------------------------------------------------------------
> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
> > It's a free troubleshooting tool designed for production.
> > Get down to code-level detail for bottlenecks, with <2% overhead.
> > Download for free and get started troubleshooting in minutes.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> > _______________________________________________
> > 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/
>
>
>
> --
> Stian Soiland-Reyes, myGrid team
> School of Computer Science
> The University of Manchester
> http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> 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/
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
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