コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: NintexWorkflows.cs プロジェクト: Eurekainc/ForRich
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: NintexWorkflows.cs プロジェクト: Eurekainc/ForRich
        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);
        }
コード例 #5
0
 private static string WorkflowTypeName(WorkflowType type)
 {
     return(Utility.PascalCaseToTitleCase(type.ToString()));
 }