On 27 June 2016 at 17:05, Thilina Manamgoda <[email protected]> wrote:
> Hi,
>
> 1. what is the dependency maven definition of  org.apache.taverna.scufl2.api
> (importing in maven)

See
https://taverna.incubator.apache.org/download/language/


> 2."(Perhaps such a utility method could be added to taverna-language)" can
> add a utility method to org.apache.taverna.scufl2.api achieve this.

Yes, feel free to have a go!

https://github.com/apache/incubator-taverna-language/blob/master/taverna-scufl2-api/src/main/java/org/apache/taverna/scufl2/api/common/Scufl2Tools.java

is probably the best home (collection of various util-like methods for SCUFL2)



> 3. inside the "configure" method in CWLDummyActivity after adding input
> ports using "addInput" method  i should call the "getInputPorts().
> addWithUIniqueName() ". Am i correct ?

Uh oh, sorry, I forgot the cwl-browse is still in Taverna 2, which
don't have addWithUniqueName(). In Taverna 3 the *-ui works only in
SCUFL2-land with activity descriptions, not with the engine's
Activity.

Perhaps it's time we start thinking about the upgrade.. here's how
Taverna 3's REST activity get its ports:

https://github.com/apache/incubator-taverna-common-activities/blob/master/taverna-rest-activity/src/main/java/org/apache/taverna/activities/rest/RESTActivityFactory.java


But if you have the dependency on taverna-scufl2-api (from above), then you can
make your own org.apache.taverna.scufl2.api.activity.Activity and add
SCUFL2 InputActivityPort to it using addWithUniqueName(),


The first half of this code would then be reusable in a new Taverna 3
CWLActivityFactory (the engine would do the mapping only when running
the workflow)



-- 
Stian Soiland-Reyes
Apache Taverna (incubating), Apache Commons
http://orcid.org/0000-0001-9842-9718

Reply via email to