Creating a sequential workflow
In this recipe, we will learn how to create a sequential workflow. For this recipe, we will model a credit approval process. When a user adds an item to a list, we will let the workflow instantiate automatically on the inserted item and flow through the process of checking the user's requested credit line and approving it based on user's employment and credit history.
Getting ready
You should have a fully functional development machine with SharePoint 2010 installed and configured. You also need Visual Studio 2010 IDE installed on the same development machine. We are using a team site template for our examples.
Use the custom list template and create a list from the SharePoint user interface called Credit Approval. The following table provides information on fields and its properties:
Field Name |
Data Type |
Required |
---|---|---|
Credit Requested |
Currency |
Yes |
Employment History |
Choice (Choices - Good, Bad, and None Exists) ... |