On Mon, May 25, 2009 at 14:13, Jerzy Orlowski <[email protected]> wrote:
> It seems that dataflow name also cannot contain spaces, slashes, colons etc.

The restrictions on dataflow name is roughly the same as those on port
names and processor names. Currently there's not a way in the 2.0 UI
to change this dataflow name (as it's not used for much) - so did you
generate this workflow - or is it translated from Taverna 1? As your
'id' is not a proper UUID I guess you generated it..



I must admit I'm not totally sure why we need these dataflow,
processor and port name restrictions - but I guess at least ":" could
confuse process identifiers. Additionally the graph is generated using
dot (graphviz) and SVG - and some funny characters here might not be
properly escaped.

Here's the regular expression used by the 'Rename processor' dialogue
to check for a valid name:

  [\\p{L}\\p{Digit}_.]+



Note that if you are thinking about the workflow Title (together with
Description and Author - as shown in 'Details' for the workflow), this
is set as an *annotation* on the dataflow, with a rather elaborate
serialisation:


<workflow xmlns="http://taverna.sf.net/2008/xml/t2flow";
        version="1">
        <dataflow id="4e1bebf7-6a9f-40fc-9eee-214e7733d3eb" role="top">
                <name>Workflow1</name>
                <inputPorts />
                <outputPorts />
                <processors />
                <conditions />
                <datalinks />
                <annotations>
                        <annotation_chain encoding="xstream">
                                
<net.sf.taverna.t2.annotation.AnnotationChainImpl
                                        xmlns="">
                                        <annotationAssertions>
                                                
<net.sf.taverna.t2.annotation.AnnotationAssertionImpl>
                                                        <annotationBean
                                                                
class="net.sf.taverna.t2.annotation.annotationbeans.Author">
                                                                <text>Some 
guy</text>
                                                        </annotationBean>
                                                        <date>2009-05-26 
09:50:07.44 WEST</date>
                                                        <creators />
                                                        <curationEventList />
                                                
</net.sf.taverna.t2.annotation.AnnotationAssertionImpl>
                                        </annotationAssertions>
                                
</net.sf.taverna.t2.annotation.AnnotationChainImpl>
                        </annotation_chain>
                        <annotation_chain encoding="xstream">
                                
<net.sf.taverna.t2.annotation.AnnotationChainImpl
                                        xmlns="">
                                        <annotationAssertions>
                                                
<net.sf.taverna.t2.annotation.AnnotationAssertionImpl>
                                                        <annotationBean
                                                                
class="net.sf.taverna.t2.annotation.annotationbeans.DescriptiveTitle">
                                                                <text>An 
exiting workflow with 'quotes' and
                                                                &lt;weird&gt; 
&amp; "funny" characters</text>
                                                        </annotationBean>
                                                        <date>2009-05-26 
09:49:51.916 WEST</date>
                                                        <creators />
                                                        <curationEventList />
                                                
</net.sf.taverna.t2.annotation.AnnotationAssertionImpl>
                                        </annotationAssertions>
                                
</net.sf.taverna.t2.annotation.AnnotationChainImpl>
                        </annotation_chain>
                        <annotation_chain encoding="xstream">
                                
<net.sf.taverna.t2.annotation.AnnotationChainImpl
                                        xmlns="">
                                        <annotationAssertions>
                                                
<net.sf.taverna.t2.annotation.AnnotationAssertionImpl>
                                                        <annotationBean
                                                                
class="net.sf.taverna.t2.annotation.annotationbeans.FreeTextDescription">
                                                                <text>Did not 
bother to write a description</text>
                                                        </annotationBean>
                                                        <date>2009-05-26 
09:50:03.827 WEST</date>
                                                        <creators />
                                                        <curationEventList />
                                                
</net.sf.taverna.t2.annotation.AnnotationAssertionImpl>
                                        </annotationAssertions>
                                
</net.sf.taverna.t2.annotation.AnnotationChainImpl>
                        </annotation_chain>
                </annotations>
        </dataflow>
</workflow>







-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information

Reply via email to