Question

user defined workbench exit code


Badge

I would like to exit a workbench with my own user defined exit code. Is that possible and how can I achive this?


3 replies

Userlevel 6
Badge +32

Not sure if I understand correctly. Do you mean when run as batch from commandline?

Badge

Not sure if I understand correctly. Do you mean when run as batch from commandline?

Usually a workbench (if succesfully) exit's with an exit code 0. This code can be "read" in a batch-script (it is %ERRORLEVEL%). I would like to (succesfully) exit it with my own (user defined/specific) exit code, not being 0.

Userlevel 4
Badge +25

It would be an errorlevel generated by fme.exe and I don't think those can be altered by the user. Perhaps you can do something with the Terminator and a custom termination message?

Reply