On Tue, Aug 17, 2010 at 23:23, Mark Fortner <[email protected]> wrote:
> I noticed that there's now a "Details" panel that allows you to click on
> input ports.  Is there any way to supply help text for those input ports,
> output ports, and processors when writing processors?

Not directly, but it should be possible to add the additional
annotations on the action of the service being added to the workflow.

There's a hook for that in the service description, I believe..
ServiceDescription has
 Edit getInsertionEdit(Dataflow dataflow, Processor p, Activity a) -
which return an additional edit to do after the processor has been
inserted with the given activity, and the activity has been configured
using the service description's configuration.

For instance (from
net.sf.taverna.t2.activities.biomoby.datatypedescriptions.BiomobyDatatypeDescription
):

        public Edit getInsertionEdit(Dataflow dataflow, Processor p,
Activity a) {
                if (a instanceof BiomobyObjectActivity) {
                        return new AddUpstreamObjectEdit(dataflow, p,
(BiomobyObjectActivity) a);
                }
                return null;
        }

The AddUpstreamObjectEdit in this case will build an CompoundEdit
which adds Biomoby parsers for the input ports, but it could also add
edits which adds the port annotations, describing the processor and
its ports.

I know this is not very ideal. We've talked about extending the
ActivityIconManager to provide other information about an activity,
such as descriptions. Ideally information about activities in a
workflow should also be linked back to the Service descriptions.

We're doing some work on this for the 'next generation' workbench,
where we're exploring service packs and components, which are to
provide a richer description and to be easier use than the bare
activities.

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

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
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