Beispiel #1
0
        /// <summary>
        /// Workflow Type Site/List
        /// </summary>
        public string WorkflowType()
        {
            var selectSingleNode = NWFXmlDocument.SelectSingleNode(@"/ExportedWorkflowWithListMetdata/WorkflowType");

            if (selectSingleNode != null)
            {
                return(selectSingleNode.InnerText);
            }
            return(string.Empty);
        }
Beispiel #2
0
        /// <summary>
        /// List Associated with Workflow.
        /// </summary>
        public string AssociatedListName()
        {
            var selectSingleNode = NWFXmlDocument.SelectSingleNode("/ExportedWorkflowWithListMetdata/ListReferences/ListReference/ListName");

            if (
                selectSingleNode != null)
            {
                return(selectSingleNode.InnerText);
            }

            return(string.Empty);
        }
Beispiel #3
0
 /// <summary>
 /// Version of Nintex Workflow the export is from.
 /// </summary>
 public int VersionOfNintexWorkflow()
 {
     try
     {
         var selectSingleNode = NWFXmlDocument.SelectSingleNode("/ExportedWorkflowWithListMetdata/Version");
         if (selectSingleNode != null)
         {
             return(int.Parse(selectSingleNode.InnerText));
         }
         return(0);
     }
     catch
     {
         return(0);
     }
 }