Hi support,
I have a job with three steps. I will consider the job as success as long one of the steps as being executed successfully.
I do not find an option I could conclude the results from three steps.
Can you help me with that?
Thanks,
Tracy
Hi support,
I have a job with three steps. I will consider the job as success as long one of the steps as being executed successfully.
I do not find an option I could conclude the results from three steps.
Can you help me with that?
Thanks,
Tracy
One way to handle this is to use a Job Variable that tracks how many steps have succeeded. At the end of the job you check the variable to decide whether the job has succeeded, and set the status based on that. It's a little complicated at the end because the only way to force the job to have a failure status is by using a Response.
Here's one way to do it:
If any of your steps succeeds, the SuccessfulSteps variable will be >0, so the last step will run. It won't do anything useful, but that's fine. The job's status will be Succeeded.
If none of your steps has succeeded, SuccessfulSteps will be 0, so the last step won't run. The Response will be invoked due to the condition failure and will set the job status to Failed.
Replies are disabled for this topic.