On 01.07.2010 18:47, Alan Williams wrote: > Dennis Neumann wrote: > >> Thanks for your replies! >> That is exactly what I want to do: find out information about the owning >> workflow. >> > Is that just the workflow, or do you care about identifying which > workflow run? > It is just the workflow. The exact workflow run will probably be identified by additional date/time.
> >> I looked at the tutorial at >> http://www.mygrid.org.uk/dev/wiki/display/developer/Creating+plugins+for+Taverna+2. >> Would this be the right kind of plugin for me? >> > That is normally used for creating a new activity / service type. > > If you only need to access the information from within a beanshell, then > it would be easier to sub-class the beanshell activity. Before the > beanshell activity runs the script, it sets variables corresponding to > the input ports to the data that is being pushed into that port. You > could in your extended beanshell, add a variable that is set to the > information you need. > > I think you would add the variable binding at line 167 of (your extended > version of) BeanshellActivity.java. > > It does not have to be a beanshell script. I have tried the example from the tutorial and it does not look that complicated. I tried to follow Stian's tip to use Dataflow.getInternalIdentifier(). Now, Dataflow is an interface and the method is not static. How can I get the current Dataflow object from inside my activity plugin? It looks like a typo, but the method is actually called getInternalIdentier() Regards Dennis ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ 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/
