示例#1
0
 public override void ReadProcessData(XmlElement xmlElement)
 {
     base.ReadProcessData(xmlElement);
     creationContext.DelegatingObject = this;
     this.DecisionDelegation          = new DelegationDef(creationContext);
     this.DecisionDelegation.ReadProcessData(xmlElement);
     creationContext.DelegatingObject = null;
 }
示例#2
0
        public override void ReadProcessData(XmlElement xmlElement)
        {
            base.ReadProcessData(xmlElement);

            if (!string.IsNullOrEmpty(xmlElement.GetAttribute("handler")))
            {
                creationContext.DelegatingObject = this;
                this.JoinDelegation = new DelegationDef(creationContext);
                this.JoinDelegation.ReadProcessData(xmlElement);
                creationContext.DelegatingObject = null;
            }
        }
示例#3
0
        public override void ReadProcessData(XmlElement xmlElement)
        {
            base.ReadProcessData(xmlElement);
            this.Scope        = creationContext.ProcessBlock;
            this.InitialValue = xmlElement.GetProperty("initial-value");

            creationContext.DelegatingObject = this;
            this.SerializerDelegation        = new DelegationDef(creationContext);
            this.SerializerDelegation.ReadProcessData(xmlElement);
            creationContext.DelegatingObject = null;
            creationContext.AddReferencableObject(this.Name, this.Scope, typeof(AttributeDef), this);
        }
示例#4
0
        public void ReadProcessData(XmlElement xmlElement)
        {
            DefinitionObject definitionObject = creationContext.DefinitionObject;

            this.DefinitionObjectId = definitionObject.Id;

            EventType = (EventType)Enum.Parse(typeof(EventType), xmlElement.GetAttribute("event").ToUpper());

            creationContext.DelegatingObject = this;
            this.ActionDelegation            = new DelegationDef(creationContext);
            this.ActionDelegation.ReadProcessData(xmlElement);

            creationContext.DelegatingObject = null;
        }
示例#5
0
        public override void ReadProcessData(XmlElement xmlElement)
        {
            base.ReadProcessData(xmlElement);

            XmlElement assignmentElement = xmlElement.GetChildElement("assignment");

            if (assignmentElement != null)
            {
                creationContext.DelegatingObject = this;
                this.AssignmentDelegation        = new DelegationDef(creationContext);
                this.AssignmentDelegation.ReadProcessData(assignmentElement);
                creationContext.DelegatingObject = null;
            }
            this.ActorRoleName = xmlElement.GetProperty("role");
        }
示例#6
0
        public override void ReadProcessData(XmlElement xmlElement)
        {
            if (xmlElement == null)
            {
                throw new ArgumentException("ProcessDefinition's ReadProcessData's xmlElement is null");
            }

            StartState startState = new StartState(creationContext);

            this.StartStateId = startState.Id;
            EndState endState = new EndState(creationContext);

            this.EndStateId = endState.Id;

            creationContext.ProcessBlock = this;
            base.ReadProcessData(xmlElement);
            XmlElement startElement = xmlElement.GetChildElement("start-state");
            XmlElement endElement   = xmlElement.GetChildElement("end-state");

            startState.ReadProcessData(startElement);
            endState.ReadProcessData(endElement);
            creationContext.ProcessBlock = null;

            Nodes.Add(startState);
            Nodes.Add(endState);

            XmlElement authorizationElement = xmlElement.GetChildElement("authorization");

            if (authorizationElement != null)
            {
                creationContext.DelegatingObject = this;
                var authorizationDelegation = new DelegationDef(creationContext);
                authorizationDelegation.ReadProcessData(authorizationElement);
                creationContext.DelegatingObject = null;
            }

            this.ResponsibleUserName = xmlElement.GetProperty("responsible");
        }