Registration Workflow Implementation
SharePoint has special features that work with Windows Workflow Foundation. These features allow long-running business processes, such as the routing process for approving a training registration, to retain state information, and to ensure that the business rules are properly followed. In the Training Management application, an instance of the approval workflow is initiated each time an employee registers for a course. More specifically, registering for a course translates into adding a new item to the Registrations list, which initiates an instance of the approval workflow.
There are two files that define the approval workflow. They are the Workflow.Designer.cs file and the Workflow.cs file. There is also a Registration Task Approval Content Type. The following topics are discussed in this section:
- Designing the Registration Approval Workflow. This topic discusses the Workflow.Designer.cs file.
- Executing the Registration Approval Workflow. This topic discusses what happens when an instance of the workflow executes.
- The Registration Approval Task Content Type. This topic discusses the content type that defines the approval task that appears on the manager dashboard.