On 16 September 2016 at 13:56, Simone Bnà <s...@cineca.it> wrote:
> Yes, I am interested in a option like the --fail-on-any-error that when an 
> activity tool fails the executeworkflow.sh fails too
> and the exit code of the activity is propagated to the exitcode of the 
> executeworkflow.
>
> How can I set this option in taverna server 2.5? Using the admin panel?

My apologies - I thought it as a potential improvement or new feature
if you like.. Would you be interested in having a go?

I think these would be the right places to add it:


Add  --fail-on-any-error option here:
https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-api/src/main/java/org/apache/taverna/commandline/options/CommandLineOptions.java

https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-launcher/src/main/java/org/apache/taverna/commandline/CommandLineOptionsImpl.java


Propagate to the Taverna Engine here somehow:

https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-common/src/main/java/org/apache/taverna/commandline/CommandLineTool.java#L252


https://github.com/apache/incubator-taverna-engine#which-module-does-what
explains the different engine parts


This class has a listener of results being produced across the
workflow and also access to the facade
https://github.com/apache/incubator-taverna-engine/blob/master/taverna-execution-local/src/main/java/org/apache/taverna/platform/execution/impl/local/LocalExecutionMonitor.java

and so it could call cancelWorkflowRun()
https://taverna.incubator.apache.org/javadoc/taverna-engine/org/apache/taverna/facade/WorkflowInstanceFacade.html#cancelWorkflowRun--



And in the end, this should return an error code rather than just
print at stdout

https://github.com/apache/incubator-taverna-commandline/blob/master/taverna-commandline-common/src/main/java/org/apache/taverna/commandline/CommandLineTool.java#L306





-- 
Stian Soiland-Reyes
http://orcid.org/0000-0001-9842-9718

Reply via email to