I have a process which does some data checking. If the tests pass then I want to continue processing the document and if it doesn't pass then I want to stop processing that document but continue with the other documents found. I use a branch statement to separate what I'm doing. I had thought a Stop Shape indicating 'End and Return' would do the trick but it didn't.
It looks like this for two records that passed the tests. Note: the third step gets executed.
The log file looks like:
The third record will fail the tests and looks like this.
Note: the third step is not executed. The log looks like
As I said, I had thought 'End and Return' would stop the current document but would continue on. I guess my question is what is the best way to handle something like this. I realize the branch does Step 1 for all documents, then Step 2 for all documents then Step 3 etc... DO I need to do a redesign or am I missing something? An exception generates an error for all documents and isn't really what I'm looking for.
Appreciate the help.