Exit codes of Command Executor processor

Questions and answers on how to get the most out of FFAStrans
Post Reply
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

Exit codes of Command Executor processor

Post by kibi »

I wounder how FFAStrans handle exit codes of Command executor processor?

I made a batch file to do some probing/testing, and it can return different exit codes:
If everything is OK: exit /B 0
If something is wrong: exit /B 1

I'd like to add some logic to the workflow based on the desigion. That's why I added two Delivery Folders - one should be executed on success, and another - on errors. But it seems, that only "Execute on success" is running. Even if exit code of batch file is 1.
Is it an issue?

P.S. :idea: Have tried to make some workaround, using global environment variables in my batch file:
setx FF-CODE 1

But Conditional processor doesn't catch refreshed values. It seems that FFASTRANS reads environment at start only.
Alexander Sorkin
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Exit codes of Command Executor processor

Post by admin »

You are right on both these issues and I will take a look at them. Thanks for reporting! :-)

-steipal
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Exit codes of Command Executor processor

Post by admin »

I can confirm that the exit-code issue has been addressed for the next release (0.7.6).

-steinar
Post Reply