AnsweredAssumed Answered

3 retcodes with 3 different outcomes

Question asked by DanielGates628573 on Mar 9, 2018
Latest reply on Mar 12, 2018 by DanielGates628573
Hello,

I have a large workflow with hundreds of jobs and workflows in it.

The first job is a UNIX job that calls a script returning 3 different outcomes. The scenario I want to happen is:

RETCODE = 0
If this happens all is good and the workflow needs to continue
RETCODE = 1
If this happens the job needs to finish ok and skip all subsequent jobs/workflows
RETCODE = 2
If this happens the job needs to raise an error and block awaiting user interaction.

Am I best doing this by embedding IF ELSE conditions in the POST CONDITIONS of the first job or maybe be doing some scripting in the POST PROCESS of the first job?

Cheers,

Dan




Outcomes