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

Reply via email to