If you drag a processor twice from the activity palette to the
workflow, the first one is called say "bconv", and the secondly would
in 2.0 get the name "bconv0", the third one "bconv1", etc. - all
computer scientist friendly (we start counting from 0, not 1).

I changed this recently to start the numbering from 2 instead of 0, so
that if you add 3 of "bconv" you would get "bconv", "bconv2", "bconv3"
- the idea being that #1 is "bconv" without a number - more "human"
friendly.


Alex commented on this - and she suggested a third approach - always
starting from 1, so you get "bconv1", "bconv2", etc.., skipping the
non-numbered "bconv"  - however I believe this is promoting the
special case (conflicting names) over the normal case (only one
"bconv") - and so we ended up with the 2-based counting.

BTW, the code for this is in workflowmodel-impl,
net.sf.taverna.workflowmodel.utils.Tools.uniqueProcessorName().

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

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
taverna-hackers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-hackers
Developers Guide: http://www.mygrid.org.uk/usermanual1.7/dev_guide.html
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq

Reply via email to