Exemple #1
0
        public void SetValues(CallActivity otherElement)
        {
            base.SetValues(otherElement);
            calledElement      = otherElement.CalledElement;
            businessKey        = otherElement.BusinessKey;
            inheritBusinessKey = otherElement.IsInheritBusinessKey;

            inParameters = new List <IOParameter>();
            if (otherElement.InParameters != null && otherElement.InParameters.Count > 0)
            {
                foreach (IOParameter parameter in otherElement.InParameters)
                {
                    inParameters.Add((IOParameter)parameter.Clone());
                }
            }

            outParameters = new List <IOParameter>();
            if (otherElement.OutParameters != null && otherElement.OutParameters.Count > 0)
            {
                foreach (IOParameter parameter in otherElement.OutParameters)
                {
                    outParameters.Add((IOParameter)parameter.Clone());
                }
            }
        }
Exemple #2
0
        public override BaseElement Clone()
        {
            CallActivity clone = new CallActivity();

            clone.SetValues(this);
            return(clone);
        }