I've been reading about workflow designs a bit and I am confused on how to model my application. Any help is greatly appreciated!
Here's the requirement:
- Sequential workflow with 5 top level Activities
- Each top-level activity may contain 1 - 5 child activities.
- New child activities may be introduced in future.
- The input to the workflow is a document and its type. Based on the type of the document, it has to go through 1 or more child activities in each top level activity.
- All top level activities and a few child activities apply for all type of documents.
- About 5 different type of documents are known at present. A theoretical maximum of 10 more document types may be added in future.
- XAML will be used for workflow configuration.
- Framework: 3.5 SP1
For the above requirement, can you please advice what is the best strategy in terms of initial design and maintenance:
- Design one big workflow with lot of IfElse branches in each top level activity (the type of document will be checked in each branch or child activity)
OR
- Design separate workflows - one each per type of document.
OR
- Any other better alternative?
thanks!