public int CompareTo(SPWorkflowInstance workflow)
        {
            if (workflow == null)
            {
                throw new JavaScriptException(Engine, "Error", "The workflow to compare to must be specified.");
            }

            return(m_workflow.CompareTo(workflow.SPWorkflow));
        }
Example #2
0
        public void CancelWorkflow(SPWorkflowInstance workflow)
        {
            if (workflow == null)
            {
                throw new JavaScriptException(this.Engine, "Error", "An instance of a SPWorkflow object must be supplied as the first argument.");
            }

            SPWorkflowManager.CancelWorkflow(workflow.SPWorkflow);
        }
Example #3
0
        public void RemoveWorkflowFromListItem(SPWorkflowInstance workflow)
        {
            if (workflow == null)
            {
                throw new JavaScriptException(this.Engine, "Error",
                                              "An instance of a SPWorkflow object must be supplied as the first argument.");
            }

            m_workflowManager.RemoveWorkflowFromListItem(workflow.SPWorkflow);
        }