Hi Michael,
That's a good solution for the case where the previous step requires some user interaction. I'd also like to see it to work with steps that execute automatically. I know how I can do it with stand alone Python scripts and JTXStep.ExecuteGPTool but it would be great if this principle (of passing on and acting on return codes) could make be incorporated in the WMX Workflow Framework. I filed an enhancement request through Esri NL support (Esri Incident #1144174, your ref: 1045974 (Steven E), maybe you can find the whole conversation with these reference numbers in NIMBUS).
The problem with the stand alone Python script solution is that you can't use take the output from a GPTool variable and create a returncode from the output variable (unless you wrap that GPTool into a stand alone Python script) .
Here's the general idea applied to a GPTool in a JTXCustomStep.ExecuteGPTool step where you can specify the name of the output variable of the GPTool that will hold the returncode.
[ATTACH=CONFIG]24305[/ATTACH]
But it would be great if any step could take the returncode from a previous step as input.
Cheers,
Marc