Example #1
0
        public int CountWorkflowAssociations(SPWorkflowTemplateInstance template, SPSiteInstance site)
        {
            if (template == null)
            {
                throw new JavaScriptException(this.Engine, "Error", "An instance of a SPWorkflowTemplate object must be supplied as the first argument.");
            }

            if (site == null)
            {
                throw new JavaScriptException(this.Engine, "Error", "An instance of a SPSite object must be supplied as the second argument.");
            }

            return(m_workflowManager.CountWorkflowAssociations(template.SPWorkflowTemplate, site.Site));
        }