In WF 4.0, the following two types of workflows are used:
Flowchart workflows - Helps you to create workflows using the common flowchart elements. In WF, the Flowchart activity is generally used to implement a non-sequential workflow, and occasionally it implements sequential workflows in case the FlowDecision nodes are not used. The Flowchart activity contains a collection of flow nodes, which inherit from the FlowNode class. The following types of nodes or elements can be a part of a flowchart:
FlowStep - Executes activities of a flowchart in a sequence.
FlowDecision - Shows the execution on the basis of a Boolean condition. It is similar to the If construct.
FlowSwitch - Shows the execution on the basis of an exclusive switch. It is similar to the Switch construct.
Procedural workflows - Helps you to create workflows using basic and sequential execution standards. In WF, procedural workflows use flow control constructs, such as While, Switch, ForEach, and If, to execute activities. These flow control constructs are similar to those found in procedural languages. Procedural workflows can also contain other flow control activities, such as Flowchart and Sequence.