工作流状态

 

namespace Microsoft.SharePoint.Workflow
{
    [Flags]
    public enum SPWorkflowState
    {
        None = 0,
        Locked = 1,
        Running = 2,
        Completed = 4,
        Cancelled = 8,
        Expiring = 16,
        Expired = 32,
        Faulting = 64,
        Terminated = 128,
        Suspended = 256,
        Orphaned = 512,
        HasNewEvents = 1024,
        NotStarted = 2048,
        All = 4095,
    }
}

if(item.Workflows[0].InternalState == Microsoft.SharePoint.Workflow.SPWorkflowState.Completed)

Workflow层面

 namespace Microsoft.SharePoint.Workflow
{
    public enum SPWorkflowStatus
    {
        NotStarted = 0,
        FailedOnStart = 1,
        InProgress = 2,
        ErrorOccurred = 3,
        StoppedByUser = 4,
        Completed = 5,
        FailedOnStartRetrying = 6,
        ErrorOccurredRetrying = 7,
        ViewQueryOverflow = 8,
        Max = 15,
    }
}

item的Workflow状态层面

 

posted @ 2009-07-07 09:48  邑尘  阅读(317)  评论(0)    收藏  举报