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