Example #1
0
        public string startWorkflow(int workflowId, WorkflowInstances_Post wfi) // TODO: Add optional username field
        {
            string sURL = string.Format(String.Format("{0}/workflows/{1}/instances", _baseURL, workflowId));

            System.Web.Script.Serialization.JavaScriptSerializer js = new JavaScriptSerializer();

            //construct JSON post data
            string postBody = string.Empty;

            if (null != wfi)
            {
                postBody = js.Serialize(wfi);
            }

            string returnjson = WebPost(sURL, postBody);

            return(returnjson);
        }
Example #2
0
        public string startWorkflow(int workflowId, WorkflowInstances_Post wfi) // TODO: Add optional username field
        {
            string sURL = string.Format(String.Format("https://fzgbiqd.appitqa.com:443/Api/Workflow/preview/workflows/{0}", workflowId));

            System.Web.Script.Serialization.JavaScriptSerializer js = new JavaScriptSerializer();

            //construct JSON post data
            string postBody = string.Empty;

            if (null != wfi)
            {
                postBody = js.Serialize(wfi);
            }

            string returnjson = WebPost(sURL, postBody);

            return(returnjson);
        }