public string workflowXML(string webUrl, string workflowName, string listName, WorkflowType workflowType) { string workflowXML = string.Empty; NintexWorkflows.NintexWorkflowWS nintexWS = new NintexWorkflows.NintexWorkflowWS(); nintexWS.Url = webUrl + serviceUrl; nintexWS.UseDefaultCredentials = true; nintexWS.ExportWorkflow(workflowName, listName, workflowType.ToString()); return(workflowXML); }
public string getWorkflowXML(string webUrl, string workflowName, string listName, WorkflowType workflowType) { string workflowXML = string.Empty; NintexWorkflowService.NintexWorkflowWS nintexWS = new NintexWorkflowService.NintexWorkflowWS(); nintexWS.Url = webUrl + serviceUrl; Console.WriteLine("Getting workflow from " + webUrl + serviceUrl); nintexWS.UseDefaultCredentials = true; workflowXML = nintexWS.ExportWorkflow(workflowName, listName, workflowType.ToString()); return(workflowXML); }
public static string Description(this WorkflowType type, DateTime?scheduledDate) { string typeString = type.ToString().ToTitleCase(); if (scheduledDate.HasValue) { return("Schedule for " + typeString + " at " + scheduledDate.Value.ToString("d MMM yyyy HH:mm")); } return(typeString); }
public Stream getWorkflowXMStream(string webUrl, string workflowName, string listName, WorkflowType workflowType) { string workflowXML = string.Empty; NintexWorkflowService.NintexWorkflowWS nintexWS = new NintexWorkflowService.NintexWorkflowWS(); nintexWS.Url = webUrl + serviceUrl; nintexWS.UseDefaultCredentials = true; workflowXML = nintexWS.ExportWorkflow(workflowName, listName, workflowType.ToString()); var stream = new MemoryStream(); var writer = new StreamWriter(stream); writer.Write(workflowXML); writer.Flush(); stream.Position = 0; return(stream); }
private static string WorkflowTypeName(WorkflowType type) { return(Utility.PascalCaseToTitleCase(type.ToString())); }