On Tue, Oct 5, 2010 at 07:37, Andreas Truszkowski <[email protected]> wrote:
> The ports of the service with the dot product are of mixed depth. Two
> have depth 1 and one has depth 0.
That's probably what could cause the problem, if your service expects
all depth 0, for instance.
In order to do a dot-product (one-to-one matching) the inputs need to
be at the same cardinality.
Assuming that you have inputs A, B and C, all expecting depth 0, but
receiving depth 1 on A and B (and the correct 0 on C) you should be
able to make an iteration strategy like:
Cross product
C
Dot product
A
B
This means that every item in A will be matched against the
corresponding item in B. Then these combinations are iterated over for
'every' value of C, in this case only a single value.
Another trick that could come in handy is to 'upgrade' the depth 0
value by using an 'Echo list' worker in front, this will force the
value to be depth 1.
Some cases might require you to do complex iteration strategies that
unfortunately can't yet be edited in the user interface (although the
engine supports it). For instance if you want to do a cross-product
over lists of lists at A and B, but want to do a dot-product between
the inner lists of A and B, you could put your service in a nested
workflow with input ports A and B at depth 1. Inside the nested
workflow you can then do dot-product on the service - and in the
mother workflow (where the nested workflow now expects depth 1) you
can do a cross-product to do the outer iteration.
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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/