Workflow Validate Method Question
The workflow engine is giving me quite a few headaches currently, but I'm peeling away the layers to try and figure out what's going on and where I (most likely) went wrong.
One thing I've run across, and don't understand, is in the ValidateWorkflow method.
Early in the method, there's a check to see if OriginalItem is equal to null. If it is, the program throws an exception.
Based on the explanation in the book, OriginalItem is only of concern if the item has already been submitted and is in the workflow process. I can understand the null check on it - but why throw the exception?
Wouldn't it be easier to simply do a not equal to null check - if true, do the checks against original items, if not true nothing to worry about?
Tim
|