Hi George,

You could try to figure out the Maven dependencies yourself. I understand that this is not a definitive answer, but with a bit of trial and error this method seemed to work for me.

Go to Taverna code repository at -- http://code.google.com/p/taverna/source/browse/taverna. It allows to "search trunk". You can use the class names from the examples that Alan has provided to find the sources of those classes. These will have package declarations at the top.

Now if you go back to the original link that I suggested and make a new search consisting of two words - "pom" and the last segment of the package name of a class for which you're trying to find Maven dependency. This will find a set of *.pom files, not all of which are applicable. You should be looking for those *.pom files that will have something like the following:

<groupId> [the package name that you found except for the last segment that you used in the search for *.pom files] </groupId> <artifactId> [this will contain the last segment of the package name that you searched for, plus something like "-api", "-impl"] </artifactId>
<version> [some version] </version>

Now if you include this information (enclosed within <dependency></dependency>) into the *.pom file of your project (provided that it was the correct dependency that you've found), the project should now build fine.


With respect to Maven repositories, try this in your *.pom file:
   <repositories>
       <repository>
           <releases />
           <snapshots>
               <enabled>false</enabled>
           </snapshots>
           <id>mygrid-repository</id>
           <name>myGrid Repository</name>
           <url>http://www.mygrid.org.uk/maven/repository</url>
       </repository>
       <repository>
           <releases>
               <enabled>false</enabled>
           </releases>
           <snapshots />
           <id>mygrid-snapshot-repository</id>
           <name>myGrid Snapshot Repository</name>
           <url>
               http://www.mygrid.org.uk/maven/snapshot-repository
           </url>
       </repository>

Sergey



Jerzy Orlowski wrote:
OK, that replies my question.
Could you just add what maven repositories and dependencies should I have?

George

Alan Williams wrote:
Jerzy Orlowski wrote:
Hi
Hello,

1. Given a wsdl location, service name and operation name, I'd like to create a Processor. How can I do It with taverna API. 2. which repositories and dependencies should I include to make it work in ecipse
Sorry for replying to Sergejs first.

If you want to know how to do it directly on a Dataflow i.e. without worrying about the UI side of things, and without worrying about undo/redo, then you do something like:

(assuming you created the ServiceDescription as I wrote for Sergejs) Alternatively you could create a WSDLActivityConfigurationBean.

Edits edits = EditsRegistry.getEdits();

// create a WSDL activity
WSDLActivity myActivity = new WSDLActivity();

// configure it from the ServiceDescription
edits.getConfigureActivityEdit(myActivity, myServiceDescription.getActivityConfiguration()).doEdit();

// create a Processsor
Processor p - edits.createProcessor();

// Add the default dispatch stack to the Processor
edits.getDefaultDispatchStackEdit(p).doEdit();

// Add the activity to the Processor
edits.getAddActivityEdit(p, myActivity).doEdit();

// Add the processor to the current dataflow
edits.getAddProcessorEdit(currentDataflow, p).doEdit();

// Find any special insertion edits to do with adding the activity
Edit insertionEdit = sd.getInsertionEdit(currentDataflow, p, myActivity);
if (insertionEdit != null) {
        insertionEdit.doEdit();
}

and you should have your activity in your processor in your dataflow.

It is normally best to put the edits into a CompoundEdit so that it can be undone/redone (and recognized as a logical "operation").

This should all be simpler via the Scufl2 interface.

George
(Jerzy Orlowski)
Alan

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-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





------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
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