/// <summary>
        /// Called by FIM when the UI for the activity must be reloaded.
        /// It passes us an instance of our workflow activity so that we can
        /// extract the values of the properties to display in the UI.
        /// </summary>
        public override void LoadActivitySettings(Activity activity)
        {
            DerivativeAttributesGeneration _calc = activity as DerivativeAttributesGeneration;

            if (null != _calc)
            {
                this.SetText("_upnSuffix", (!string.IsNullOrEmpty(_calc.UpnSuffix)) ? _calc.UpnSuffix : this.GetText("_upnSuffix"));
                // this.SetText("_src", _calc.SetSource1);
                //this.SetText("_dest", _calc.SetDest1);
            }
        }
        /// <summary>
        /// Called when a user clicks the Save button in the Workflow Designer.
        /// Returns an instance of the RequestLoggingActivity class that
        /// has its properties set to the values entered into the text box controls
        /// used in the UI of the activity.
        /// </summary>
        public override Activity GenerateActivityOnWorkflow(SequentialWorkflow workflow)
        {
            if (!this.ValidateInputs())
            {
                return(null);
            }
            DerivativeAttributesGeneration _calc = new DerivativeAttributesGeneration();

            _calc.UpnSuffix = this.GetText("_upnSuffix");
            // _calc.SetSource1 = this.GetText("_src");
            // _calc.SetDest1 = this.GetText("_dest");
            return(_calc);
        }