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?