コード例 #1
0
ファイル: InvokeStep.cs プロジェクト: snbbgyth/WorkFlowEngine
        /// <summary>
        /// Initializes a new instance of the InvokeStep class
        /// </summary>
        /// <param name="attributes">Xml attributes from the BPEL file
        /// when invoking execution of workflow activities</param>
        public InvokeStep(XmlAttributeCollection attributes)
        {
            InvokeContext = new InvokeContextModel();
            // this.type = InvokeType.Unknown;
            foreach (XmlAttribute attrib in attributes)
            {
                switch (attrib.LocalName.ToLower())
                {
                    case "operation":
                        InvokeContext.Operation = attrib.Value;
                        break;
                    case "name":
                        InvokeContext.Name = attrib.Value;
                        StepId = attrib.Value;
                        break;
                    case "partnerlink":
                        InvokeContext.PartnerLink = attrib.Value;
                        break;
                    case "porttype":
                        InvokeContext.PortType = attrib.Value;
                        break;
                    case "inputvariable":
                        InvokeContext.InputVariable = attrib.Value;
                        break;
                    default:
                        break;
                }
            }

        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the InvokeStep class
        /// </summary>
        /// <param name="attributes">Xml attributes from the BPEL file
        /// when invoking execution of workflow activities</param>
        public InvokeStep(XmlAttributeCollection attributes)
        {
            InvokeContext = new InvokeContextModel();
            // this.type = InvokeType.Unknown;
            foreach (XmlAttribute attrib in attributes)
            {
                switch (attrib.LocalName.ToLower())
                {
                case "operation":
                    InvokeContext.Operation = attrib.Value;
                    break;

                case "name":
                    InvokeContext.Name = attrib.Value;
                    StepId             = attrib.Value;
                    break;

                case "partnerlink":
                    InvokeContext.PartnerLink = attrib.Value;
                    break;

                case "porttype":
                    InvokeContext.PortType = attrib.Value;
                    break;

                case "inputvariable":
                    InvokeContext.InputVariable = attrib.Value;
                    break;

                default:
                    break;
                }
            }
        }