public PluginExecutionResult Execute(PluginExecutionData executionData)
        {
            _pluginExecutionData = executionData;
            _activityData        = executionData.GetMetadata <HpcrSimulationData>();

            _hpcrClient = new HpcrExecutionProxyClient(executionData.Environment.PluginSettings["HpcrProxy"]);

            var retryManager             = new PluginRetryManager(executionData, UpdateStatus);
            PluginExecutionResult result = retryManager.Run(PerformActivity);

            return(result);
        }
        /// <summary>
        /// Initializes control for new data.
        /// </summary>
        /// <param name="environment">The environment.</param>
        public void Initialize(PluginEnvironment environment)
        {
            _hpcrClient             = new HpcrConfigurationProxyClient(environment.PluginSettings["HpcrProxy"]);
            _activityData           = new HpcrSimulationData();
            _distributionOriginator = string.Empty;

            serverComboBoxHpcr.Initialize("HPCR");
            LoadDistributionTitles();
            SetControlsByActivityData();

            documentSelectionControl.Initialize();
        }
        /// <summary>
        /// Initializes the specified configuration from stored meta data
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        /// <param name="environment">The environment.</param>
        public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment)
        {
            _hpcrClient             = new HpcrConfigurationProxyClient(environment.PluginSettings["HpcrProxy"]);
            _activityData           = configuration.GetMetadata <HpcrSimulationData>();
            _distributionOriginator = _activityData.SendToDistribution.Originator;

            documentSelectionControl.Initialize(configuration.Documents);

            serverComboBoxHpcr.Initialize(configuration.Servers.SelectedServers.FirstOrDefault(), "HPCR");

            LoadDistributionTitles();
            SetControlsByActivityData();
        }