Inheritance: PartialRedDotProjectObject, IWorkflow
Esempio n. 1
0
 internal PreassignedWorkflow(IWorkflowAssignable elementPreassignedTo, Workflow workflow)
 {
     ElementPreassignedTo = elementPreassignedTo;
     _workflow = workflow;
 }
Esempio n. 2
0
        private WorkflowInfo ToWorkflow(XmlNodeList workflows)
        {
            if (workflows.Count == 0)
            {
                return null;
            }

            var workflowElement = (XmlElement) workflows[0];
            int? skipable = workflowElement.GetIntAttributeValue("skipable");
            var workflow = new Workflow(_project, workflowElement.GetGuid())
                {
                    Name = workflowElement.GetAttributeValue("name")
                };
            return new WorkflowInfo(workflow,
                                    ToReleases((XmlElement) workflowElement.GetElementsByTagName("RELEASES")[0]),
                                    workflowElement.GetAttributeValue("releasename"),
                                    (WorkflowInfo.Rejection) workflowElement.GetIntAttributeValue("rejectiontype"),
                                    (WorkflowInfo.ReleaseType) workflowElement.GetIntAttributeValue("releasetype"),
                                    skipable == null
                                        ? WorkflowInfo.RejectionSkippableType.NotApplicable
                                        : (WorkflowInfo.RejectionSkippableType) skipable.Value,
                                    workflowElement.GetIntAttributeValue("escalationtimeout").Value,
                                    from XmlElement curSupplement in workflowElement.GetElementsByTagName("SUPPLEMENT")
                                    select new Note(workflow, curSupplement));
        }