I am trying to call a .bat file from the Invoke Process component in Javelin. Although the Invoke process functionality is working fine if the bat file executes successfully, the workflow is getting completed even if .bat file fails.
Below is the .bat file content. I am trying to fail the .bat file explicitly giving Exit code as 1 or anything apart from exit code 0 which signifies batch success.
Let me know what can be done to fail the javelin workflow.
Please note I have selected 'ContinueOnError' property of Invoke Process as 'False'.
echo "Start creating CD_ALL.xlsx">>C:\log.txt
if %errorlevel% NEQ 10 GOTO :error
echo "There was an error.">>C:\log.txt
echo "Exit the program" >>C:\log.txt
EXIT /B 1
echo "CD_ALL Macro run completed">>>C:\log.txt