Here is the list of the status codes used to maintain the workflow statuses. This list might be useful when anyone creates a view based on workflow status. If you are creating a view for a list filtered by the workflow status, you would need use the number rather than the words (e.g. 2 instead of In Progress, 4 instead of Cancelled etc)
Status | Value |
Not Started | 0 |
Failed on Start | 1 |
In Progress | 2 |
Error Occurred | 3 |
Canceled | 4 |
Completed | 5 |
Failed on Start (retrying) | 6 |
Error Occurred (retrying) | 7 |
Canceled | 15 |
Approved | 16 |
Rejected | 17 |