Saturday, July 2, 2011

SharePoint workflow staus codes

This is very important for SharePoint devs. Even I have used them many times, but I forget the status codes almost every time. So, might be happening to everyone too and planned to blog in my blog.

The enum SPWorkflowStatus in the namespace "Microsoft.SharePoint.Workflow" in the library "Microsoft.SharePoint" is what we have to use for these status codes.

0
NotStarted
Not Started
1
FailedOnStart
Failed On Start
2
InProgress
In Progress
3
ErrorOccurred
Error Occurred
4
StoppedByUser
Cancelled
5
Completed
Completed
6
FailedOnStartRetrying
Failed on Start (retrying)
7
ErrorOccurredRetrying
Error Occurred (retrying)
8
ViewQueryOverflow
--
9-14
Unknown
Unknown
15
Cancelled
Cancelled
16
Approved
Approved
17
Rejected
Rejected

Hope this is enough for us to get what we needed.  :)

2 comments:

  1. Thanks for posting this! I can never remember these darn codes.

    ReplyDelete
  2. Thanks for posting this, I never remember these darn codes.

    ReplyDelete