Hi,
We have a custom workflow deployed on Sharepoint 2007. And now as part of a requirement, we need to identify and list all workflows that are in "Error Occured" state to take some action on these workflows.
On further investigation, found that this state information is available in "Status1" attribute of Workflow.XML property of workflow. It happened to parse this XML string to get this status value, which is representing expected SPWorkflowStatus enum as mentioned below;
- Completed = 5,
ErrorOccurred = 3,
ErrorOccurredRetrying = 7,
FailedOnStart = 1,
FailedOnStartRetrying = 6,
InProgress = 2,
Max = 15,
NotStarted = 0,
StoppedByUser = 4,
ViewQueryOverflow = 8
Hence could you please help me in this regard to know
1. if there is any property available to know this status value?
2. Is there is any way to change this "Error Occured" SPWorkflowStatus to "Completed" state programatically?
Thanks & Regards,
Suresh Channam