Adding a custom workflow status
In this recipe, we will make modifications to the previous state machine workflow to show a custom workflow status during the state transition.
Getting ready
Since this recipe is a modification of the Creating state machine workflow recipe, you should have successfully completed that one to follow this recipe.
How to do it...
Open the StateMachineWorkflow solution if it is closed.
In the
MetaData
section of the workflow'sElements.xml
file, add theExtendedStatusColumnValues
element and define your custom statuses in theStatusColumnValue
element. The following code shows the custom status for our workflow created in this recipe. For the sake of brevity, I have only shown a part of theElements.xml
file:<MetaData> <AssociationCategories>List</AssociationCategories> <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl> <ExtendedStatusColumnValues> <StatusColumnValue>Manager Review</StatusColumnValue...