Example #1
0
		public ActionImpl CreateAction()
		{
			ActionImpl action = new ActionImpl();
			_actions.Add(action);
			// The relation between DefinitionObjectImpl and Action is 
			// not modelled in hibernate because the hibernate-feature
			// of mixing subclass with joined-subclass was still under 
			// construction.
			// On the other hand, we can't set the id-reference in the
			// action because at parsing-time, this DefinitionObjectImpl
			// does not yet have an id.  @see action.setDefinitionObjectId( id );
			return action;
		}
Example #2
0
        public virtual ActionImpl CreateAction()
        {
            ActionImpl action = new ActionImpl();

            _actions.Add(action);
            // The relation between DefinitionObjectImpl and Action is
            // not modelled in hibernate because the hibernate-feature
            // of mixing subclass with joined-subclass was still under
            // construction.
            // On the other hand, we can't set the id-reference in the
            // action because at parsing-time, this DefinitionObjectImpl
            // does not yet have an id.  @see action.setDefinitionObjectId( id );
            return(action);
        }
Example #3
0
        public virtual void ReadProcessData(XmlElement xmlElement, ProcessDefinitionBuildContext creationContext)
        {
            this._name = xmlElement.GetProperty("name");
            log.Debug("parsing '" + xmlElement.Name + "' with name '" + _name + "'");
            this._description       = xmlElement.GetProperty("description");
            this._processDefinition = creationContext.ProcessDefinition;
            IEnumerator iter = xmlElement.GetChildElements("action").GetEnumerator();

            while (iter.MoveNext())
            {
                creationContext.DefinitionObject = this;
                XmlElement actionElement = (XmlElement)iter.Current;
                ActionImpl action        = new ActionImpl();
                action.ReadProcessData(actionElement, creationContext);
                creationContext.DefinitionObject = null;
            }
        }
Example #4
0
		public virtual void ReadProcessData(XmlElement xmlElement, CreationContext creationContext)
		{
			this._name = xmlElement.GetProperty("name");
			log.Debug("parsing '" + xmlElement.Name + "' with name '" + _name + "'");
			this._description = xmlElement.GetProperty("description");
			this._processDefinition = creationContext.ProcessDefinition;
			IEnumerator iter = xmlElement.GetChildElements("action").GetEnumerator();
			while (iter.MoveNext())
			{
				creationContext.DefinitionObject = this;
				XmlElement actionElement = (XmlElement) iter.Current;
				ActionImpl action = new ActionImpl();
				action.ReadProcessData(actionElement, creationContext);
				creationContext.DefinitionObject = null;
			}
		}