Example #1
0
        public int GetWorkflowAvailableRunCount(SPWebInstance web)
        {
            if (web == null)
            {
                throw new JavaScriptException(this.Engine, "Error",
                                              "An instance of a SPWeb object must be supplied as the first argument.");
            }

            return(m_workflowManager.GetWorkflowAvailableRunCount(web.Web));
        }