public WorkflowSelectionProject(WorkflowSelection owner, XmlNode xmlNode) { this.Owner = owner; this.XmlNode = xmlNode; this.Load += WorkflowSelectionProject_Load; Parse(); }
public WorkflowSelectionHierarchy(WorkflowSelection owner, XmlNode xmlNode) { this.Owner = owner; this.XmlNode = xmlNode; this.Load += WorkflowSelectionHierarchy_Load; Parse(); }
private void Parse() { // Run through all workflow selection xml nodes. foreach (XmlNode xmlNode in this.XmlNode.ChildNodes) { WorkflowSelection selection = new WorkflowSelection(this, xmlNode); if (!this.Selections.ContainsKey(selection.Name)) { this.Selections.Add(selection.Name, selection); } } }
public WorkflowSelectionVariable(WorkflowSelection owner, XmlNode xmlNode) { this.Owner = owner; this.XmlNode = xmlNode; this.Load += WorkflowSelectionVariable_Load; if (this.XmlNode.Attributes["IdVariable"] == null && this.XmlNode.Attributes["VariableName"] != null) { Guid?idVariable = null; if (!this.IsTaxonomy) { object _idVariable = this.Owner.Owner.Core.Variables.GetValue( "Id", "Name", this.XmlNode.Attributes["VariableName"].Value ); if (_idVariable != null) { idVariable = (Guid)_idVariable; } } else { object _idVariable = this.Owner.Owner.Core.TaxonomyVariables.GetValue( "Id", "Name", this.XmlNode.Attributes["VariableName"].Value ); if (_idVariable != null) { idVariable = (Guid)_idVariable; } } if (idVariable != null) { this.XmlNode.AddAttribute("IdVariable", idVariable); } else { this.XmlNode.AddAttribute("IdVariable", new Guid()); } } Parse(); }