Skip to end of metadata
Go to start of metadata


Assuming, you have a shell script as a member of a job chain. You want to check, whether the call of the script is running after a suspend, that is, the last call ended with an error.

You can achieve this by adding some pre-processing and post-processing to the job.

Setting the default value of an order parameter suspend in the pre-processing

Checking the exit code. If not zero then set the order parameter suspend to true

Then the environment variable will be accessible in your script:

The whole sample can be downloaded here