Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the CaseStep class
        /// </summary>
        /// <param name="attributes">XmlAttributeCollection containing the attributes 
        /// for the BPEL CaseStep statement.</param>
        /// <param name="defaultCase">A flag indicating whether this case step
        /// is the default step</param>
        public CaseStep(XmlAttributeCollection attributes, bool defaultCase)
            : base()
        {
            CaseContext = new CaseContextModel();
            this.defaultCase = defaultCase;

            // read attributes
            foreach (XmlAttribute attrib in attributes)
            {
                if (attrib.LocalName == "name")
                {
                    CaseContext.Name = attrib.Name;
                }
                else if (attrib.LocalName == "condition")
                {
                    CaseContext.Condition = attrib.Value;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the CaseStep class
        /// </summary>
        /// <param name="attributes">XmlAttributeCollection containing the attributes
        /// for the BPEL CaseStep statement.</param>
        /// <param name="defaultCase">A flag indicating whether this case step
        /// is the default step</param>
        public CaseStep(XmlAttributeCollection attributes, bool defaultCase)
            : base()
        {
            CaseContext      = new CaseContextModel();
            this.defaultCase = defaultCase;

            // read attributes
            foreach (XmlAttribute attrib in attributes)
            {
                if (attrib.LocalName == "name")
                {
                    CaseContext.Name = attrib.Name;
                }
                else if (attrib.LocalName == "condition")
                {
                    CaseContext.Condition = attrib.Value;
                }
            }
        }