Dinanath Sulakhe wrote: > ( I think these question are more suitable for the hackers list, so > resending it. )
Hello, > Please find the questions below: > > >> I would like to add one more query to the following. >> Is it possible to also get a image or svg of the workflow >> programatically from its scufl doc? Yes, but it is not trivial. The svg is generated from dot which is generated from the workflow. In Taverna 1, look at org.embl.ebi.escience.scuflui.ScuflSVGDiagram.updateGraphic(). In Taverna 2.1 look at net.sf.taverna.t2.reference.ui.WorkflowLaunchPanel.createWorkflowGraphic(Dataflow) >> Thanks, -Dina >> >> Begin forwarded message: >> >>> *From: *Dinanath Sulakhe <[email protected] >>> <mailto:[email protected]>> >>> *Date: *May 28, 2009 12:42:19 PM CDT >>> *To: *[email protected] >>> <mailto:[email protected]> >>> *Subject: **getting number of inputports for a workflow.* >>> >>> Hi Stian, >>> >>> What is the best way to get he number of inputports using scufl file? In Taverna 1 do: myScuflModel.getWorkflowSourcePorts().length In Taverna 2 do myDataflow.getInputPorts().size() If you meant an actual Scufl file, then you could treat it as an XML document and count the number of <s:source>...</s:source> elements. >>> I am trying to do it by creating/loading a Dataflow object, but it >>> looks like it needs a lot of jars to do that (I don't want to ship so >>> many with my portlet). It is true that you need a lot of jars to create a Dataflow object. I think that the code needs to be simplified to remove the large number of dependencies. >>> I need this feature for the portal work (to >>> prompt the users to enter the inputs). I'd be tempted to treat it as an XML document. >>> You mentioned that there are a >>> lot of cool things in 2.1 (which we need to explore soon), but for >>> now, I was wondering what is simplest way of doing it in T2.0? >>> >>> Thanks, -Dina Alan ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-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
