On 15/07/2012 17:56, Bamdad Dashtban wrote: > Hi Hello
> I've been trying to find a class in the API which helps me to get > information about the current opened workflow in the workbench. You should look at FileManager. For example: FileManager fm = FileManager.getInstance(); Dataflow current = fm.getCurrentDataflow(); that returns the current (visible in the design perspective) dataflow. You can also do: fm.getOpenDataflows(); > For example I'd like to open or create a workflow in workbench and be able > to get the list of dataflows or processors in it through api call. From the dataflow you can do myDataflow.getProcessors() > I guess there should be a singleton object in the api which returns the > current workflow object, but I couldn't find it yet. > > Can someone please point me to that class if I'm right or correct me if I'm > wrong? > > Best Regards, > Bamdad Alan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: http://www.taverna.org.uk/developers/
