Workflow Pattern - Exclusive Choice
For the last few blog posts, I have shared with you one of the workflow patterns from the book Workflow Patterns. This month we will look at a control pattern called exclusive choice. Like the last pattern we examined, synchronization, exclusive choice relies on branching, but unlike synchronization, the workflow can only follow one path among the branches encountered at a particular branch point. So, unlike in the case of synchronization, where two or more paths are running in parallel and must be synchronized into a single path, exclusive choice allows only one path to be followed and therefore requires no synchronization. Without exclusive choice, branch points lead to parallel paths. With exclusive choice, branch point lead to alternative paths.