Good point - if you use SSH or the secure user switching of the server then the environment variable won't pass along.
Then you can do something like this to pass it along from the system properties: http://www.myexperiment.org/workflows/4862 (but then again you can't use that to access /tmp/$uuid on a different machine) On 21 April 2016 at 09:35, Alan Williams <[email protected]> wrote: > On 21-Apr-16 08:27, Stian Soiland-Reyes wrote: >> >> Yes, as $TAVERNA_RUN_ID >> >> Here's the output from running env on my server: >> >> >> INTERACTION_WEBDAV=/rest/runs/1addd0f3-8ad9-4d82-8ffa-350b809374fd/wd/interactions >> INTERACTION_PORT=32768 >> HOSTNAME=e4e7a0a0908c >> HOME=/root >> RAVEN_APPHOME=/tmp/1addd0f3-8ad9-4d82-8ffa-350b809374fd >> WAR_MD5=20d27405b27a3418b783777171734514 >> CATALINA_HOME=/usr/local/tomcat >> TOMCAT_MAJOR=7 >> JAVA_VERSION=7u79 >> JAVA_DEBIAN_VERSION=7u79-2.5.5-1~deb8u1 >> >> PATH=/usr/lib/jvm/java-7-openjdk-amd64/jre/bin:/usr/local/tomcat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin >> >> TOMCAT_TGZ_URL=https://www.apache.org/dist/tomcat/tomcat-7/v7.0.63/bin/apache-tomcat-7.0.63.tar.gz >> TAVERNA_VERSION=2.5.4 >> LANG=C.UTF-8 >> TOMCAT_VERSION=7.0.63 >> >> INTERACTION_FEED=/rest/runs/1addd0f3-8ad9-4d82-8ffa-350b809374fd/interaction >> TAVERNA_RUN_ID=1addd0f3-8ad9-4d82-8ffa-350b809374fd >> PWD=/tmp/usecase4814808815707856724dir >> INTERACTION_HOST=http://localhost >> >> As mentioned earlier, from within the workflow you can use the >> taverna.runid system property, fetched with Get_environment and XPath >> /property-list/property[@name="taverna.runid"]/@value > > > I think the run id will need to be passed into the activity as an additional > parameter. I would not expect the run id to be in the environment of a tool > running, for example, on a different machine. > > Alan > > -- Stian Soiland-Reyes Apache Taverna (incubating), Apache Commons RDF (incubating) http://orcid.org/0000-0001-9842-9718
