Thank you Alan.
I believe I am going to have to be adding a few more dependencies to my
plugin and I was wondering if a list exist for which dependencies allow
access to which Objects?
For example, I am trying to pull in the following object:
*WSDLActivityConfigurationBean*
*
*
and it says that it exists within the package:
*net.sf.taverna.t2.activities.wsdl.WSDLActivityConfigurationBean*
*
*
however, that package no longer seems to exist? or its in an oddly named
maven dependency?
I am trying to look over a t1 or t2 file to see if it contains
WSDLActivities. The only way I know how as of this moment is the following
code:
********************************************
public void handleProcessors(){
Namespace ns = Namespace.getNamespace("", "
http://taverna.sf.net/2008/xml/t2flow");
// Step over each processor in the dataflow
for(Processor processor : (List<Processor>)currentDataflow.getProcessors()){
// This list will have a size of 1 Activity
List<Activity<?>> activity = (List<Activity<?>>)processor.getActivityList();
// This list will have a size of 1 Element
List<Element> wsdlNode = ((Element)activity.get(0).getConfiguration())
.getChild("configBean", ns).getChildren();
// If this Element object matches the n
if(wsdlNode.get(0).getName()
.equals("net.sf.taverna.t2.activities.wsdl.WSDLActivityConfigurationBean"))
System.out.println(wsdlNode.get(0).toString());
}
}
**************************************
However, I found code that would populate a Configuration bean like so:
***********************************************************
<activity><raven><group>net.sf.taverna.t2.activities</group><artifact>wsdl-activity</artifact><version>0.4</version></raven><class>net.sf.taverna.t2.activities.wsdl.WSDLActivity</class>
(..)
<configBean encoding="xstream">
<net.sf.taverna.t2.activities.wsdl.WSDLActivityConfigurationBean xmlns="">
<wsdl>http://soap.genome.jp/KEGG.wsdl</wsdl>
<operation>get_paralogs_by_gene</operation>
</net.sf.taverna.t2.activities.wsdl.WSDLActivityConfigurationBean>
</configBean>
</activity>
When deserialising Taverna would do (in pseudocode) something like:
plugin = raven.getPlugin("net.sf.taverna.t2.activities", "wsdl-activity", "0.4")
activity = plugin.loadClass("net.sf.taverna.t2.activities.wsdl.WSDLActivity")
bean = new net.sf.taverna.t2.activities.wsdl.WSDLActivityConfigurationBean()
bean.wsdl = "http://soap.genome.jp/KEGG.wsdl";
bean.operation = "get_paralogs_by_gene"
activity.configure(bean)
*********************************************
How would I setup my depencies to do something like this? Im aware this is
psuedocode but is there code online that may point me in the right
direction?
- John
On Mon, Mar 7, 2011 at 10:38 AM, Alan R Williams <[email protected]>wrote:
> Hello,
>
> ScuflFileType is in
>
> <groupId>net.sf.taverna.t2.ui-exts</groupId>
> <artifactId>file-translator</artifactId>
> <version>1.2</version>
>
> It should also pull in the activities and the translators for them.
>
> Out of interest, what does your plugin do?
>
> Alan
>
>
>
> ------------------------------------------------------------------------------
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> _______________________________________________
> 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/
>
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
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/