Aqueduct.SitecoreLib.Search.Utilities.ItemUtil.IsApproved C# (CSharp) Method

IsApproved() public static method

Checks if item is in a final workflow state.
public static IsApproved ( Item item ) : bool
item Item Sitecore item.
return bool
        public static bool IsApproved(Item item)
        {
            Assert.ArgumentNotNull(item, "item");
            var stateItem = GetStateItem(item);
            return stateItem == null || stateItem[WorkflowFieldIDs.FinalState] == "1";
        }