concept workflow history in category sharePoint
appears as: Workflow History, workflow history, workflow history

This is an excerpt from Manning's book SharePoint 2010 Workflows in Action.
Table 2.3. Adding two custom columns to the document library used by the workflow
Action
Steps
Result
Navigate to the document library’s workflow settings page.
- Open the Shared Documents document library from your Team Site where you’ll add the workflow.
- On the Library Tools menu in the Ribbon, click Workflow Settings.
You’re on the Workflow Settings page and ready to add a workflow to the library. Add a workflow and choose a workflow template.
- On the Workflow Settings dropdown, click Add a Workflow.
- On the Add a Workflow page in the Workflow section, select Three-state under Select a workflow template.
- In the Name section, type a unique name for the workflow. In this scenario, you’ll call this workflow My First Workflow.
NOTE: If you’re running only SharePoint Foundation, you’ll have fewer options in the list of workflows than if you were running SharePoint Server. You may also see custom workflows, if applicable.
Associate the workflow with a task and history list. NOTE: You can use the default history list or you can create a new one. Much like previous tasks, if you plan on having numerous workflows, you might want to create a separate history list for each workflow.
- In the Task List section, specify a task list to use with the workflow.
- In the History List section, select a history list to use with this workflow. The history list displays all of the events that occur during each instance of the workflow. Use the default of Workflow History for this scenario.
Specify start options.
- In the Start Options section, check Allow this workflow to be manually started by an authenticated user with Edit Permissions, if unchecked. All other checkboxes should be blank or unchecked.
Specify workflow states.
- Click Next to continue to the second stage of the workflow’s configuration.
- In the Workflow states section, under Select a Choice field, you should see the Status column you created earlier selected by default; if not, select the Status column manually.
- Select the column values that you want for the Initial state, Middle state, and Final state of the workflow. This is where you’ll refer back to the Status column you created earlier, which had the choices of Create, Review, and Approved.
The states should be configured similarly to figure 2.6: Initial state = Create Middle state = Review Final state = Approved
If you disable the cleanup, you may experience performance issues with the history lists used by your workflows. Browsing the workflow history may slow down when there are thousands of items in the list. If you want audit functionality for your workflows, it may be better to have a history list for each workflow or write to an external database such as SQL, which can scale better.
NOTE: If you’re running only SharePoint Foundation, you’ll have fewer options in the list of workflows than if you were running SharePoint Server. You may also see custom workflows, if applicable. 

