I have a ModelBuilder model that determines whether a field in a table contains null or duplicate values. The outputs of the model are two integer parameters, one with the count of nulls and one with the count of duplicates.
I have a workflow in Workflow Manager that I would like to integrate the model into in order to implement logic branching.
Is there a way in Workflow Manager to:
- Run the model as a step in a workflow
- Examine the output of the model and branch into 1 of 2 logical workflow branches.
For 1) I assume that I must run the JTXSteps.ExecuteGPTool custom step, is that correct?
For 2) (How) can I set the return code in the model? Must I refactor the model so that it only has one output parameter, or should I actually cause an error to occur for the return code to be non-zero? How can I use the return code to specify the logical branch to step into?



sys.exit(n)python statements to return codes that map to conditional return codes in WM? It might save you from having to compile, register a custom DLL for something as mundane as checking for dupes/null. – Jay Cummins Oct 3 '12 at 19:15