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状态层面

 

相关文章:

  • 2022-01-21
  • 2021-08-02
  • 2021-04-16
  • 2022-02-08
  • 2022-12-23
  • 2021-12-19
  • 2022-03-01
猜你喜欢
  • 2022-01-17
  • 2021-11-08
  • 2022-03-03
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案