Hi

Just a silly question (probably the answer is "Have you tried google?"),
is there some document(s) with simple to follow example(s) on how to
make workflows programmatically, I couldn't find anything else  than the
javadocs.

I was interested on studying and building some workflows using Jython.

Thanks

Jorge



On 19/01/12 14:04, Prashant Bandal wrote:
>
> Hi,
>
>  
>
> I want to create a workflow programmatically using Taverna 2.3 API.
>
> I tried following code but I am not able to create a workflow.
>
>  
>
> Code:
>
>                                                 Edits editsImpl =
> *new* EditsImpl();
>
>                                                 ActivityInputPort
> _activityInputPort_ = editsImpl.createActivityInputPort("command", 1,
> *true*, *null*, String.*class*);
>
>                                                 Processor processor =
> editsImpl.createProcessor("localworkerCommandLine");
>
>                                                 ProcessorInputPort
> processorInputPort = editsImpl.createProcessorInputPort(processor,
> "comd", 0);
>
>                                                 ProcessorOutputPort
> _processorOutputPort_ = editsImpl.createProcessorOutputPort(processor,
> "result", 1, 0);
>
>                                                 OutputPort _
> outputPort_  = editsImpl.createActivityOutputPort("Log", 1, 0);
>
>                                                
> CommandLineInvocationContext _commandLineInvocationContext_ = *new*
> CommandLineInvocationContext(*null*, *null*);
>
>                                                
>
>                                                 Datalink _ datalink_ =
> editsImpl.createDatalink(*null*, processorInputPort);
>
>                                                 Dataflow dataflow =
> editsImpl.createDataflow();
>
>                                                
>
>                                                
> System./out/.println(dataflow.toString());
>
>                                                
> DataflowValidationReport dataflowValidationReportImpl =
> dataflow.checkValidity();
>
>                                                
> System./out/.println("Validity
> chk"+dataflowValidationReportImpl.isValid());
>
>                                                
> System./out/.println("Validity
> chk"+dataflowValidationReportImpl.isWorkflowIncomplete());
>
>                                                
> System./out/.println("Validity
> chk"+dataflowValidationReportImpl.getFailedEntities());
>
>                                                 // Add the processor
> to the _dataflow_
>
>                                                
> editsImpl.getAddProcessorEdit(dataflow, processor).doEdit();
>
>                                                 // Create a _
> workflow_ output port and a _workflow_ input port
>
>                                                
> editsImpl.getAddDataflowInputPortEdit(dataflow,
>
>                                                
> editsImpl.createDataflowInputPort("Input", 0, 0, dataflow))
>
>                                                                 .doEdit();
>
>                                                
> editsImpl.getAddDataflowOutputPortEdit(dataflow,
>
>                                                
> editsImpl.createDataflowOutputPort("Output", dataflow)).doEdit();
>
>  
>
> I am not able to connect the workflow input to the processor and the
> processor to the workflow output.
>
> Please give me inputs.
>
>                                                
>
> Thank you.
>
>  
>
> Regards,
>
> *Prashant Bandal *
>
>  
>
> DISCLAIMER ========== This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please
> notify the sender and delete all copies of this message. Persistent
> Systems Ltd. does not accept any liability for virus infected mails.
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
>
>
> _______________________________________________
> taverna-users mailing list
> [email protected]
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/about/contact-us/


-- 
PGP public key: 0x595FF9D3

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to