I have a batch file (.bat) that I need to run. What Transformers would I need to use to get this to run using a workspace in FME Desktop?
Running a .bat file in FME Desktop workspace
Best answer by virtualcitymatt
You could just leave it with the two transformers, but a better approach might be to include some error capture.
for example, the SystemCaller caller might successfully call the .bat file, but the .bat file fails to run and you get a nonzero exit code. Your workbench will show as having run successfully (because fundiemntally it did). What you could include is a Tester that tests for a 0 exit code and passes that to a logger which says 'Success'. Is cases where the exit code isn't 0, you can then pass it to a Terminator which will terminate the workbench, showing as a failure
Yes 100% this is the best workflow here
Creator > SytemCaller > Tester (_exit=0) > (Logger pass|Terminator fail)
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.