Пример #1
0
        /// <summary>
        /// Defines and executes the $safeclassprefix$ workflow.
        /// </summary>
        /// <param name="executionData">Information used in the execution of this workflow.</param>
        /// <returns>The result of executing the workflow.</returns>
        public PluginExecutionResult Execute(PluginExecutionData executionData)
        {
            PluginResult result = PluginResult.Passed;

            _data = executionData.GetMetadata <$safeclassprefix$ActivityData>();

            UpdateStatus("Starting execution");

            UpdateStatus("Completing execution");
            UpdateStatus("Result = " + result.ToString());
            return(new PluginExecutionResult(result));
        }
Пример #2
0
 /// <summary>
 /// Initializes the configuration control to default values.
 /// </summary>
 /// <param name="environment">Domain and plugin specific environment data.</param>
 public void Initialize(PluginEnvironment environment)
 {
     _data = new $safeclassprefix$ActivityData();
 }
Пример #3
0
 /// <summary>
 /// Initializes the configuration control with the supplied configuration settings.
 /// </summary>
 /// <param name="configuration">Pre-configured plugin settings.</param>
 /// <param name="environment">Domain and plugin specific environment data.</param>
 public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment)
 {
     // Deserialize the plugin specific configuration settings.
     _data = configuration.GetMetadata <$safeclassprefix$ActivityData>();
 }
Пример #4
0
 /// <summary>
 /// Initializes this configuration control with the specified <see cref="PluginConfigurationData" />.
 /// </summary>
 /// <param name="configuration">The configuration data.</param>
 /// <param name="environment">Information about the plugin environment.</param>
 public void Initialize(PluginConfigurationData configuration, PluginEnvironment environment)
 {
     _data = configuration.GetMetadata <$safeclassprefix$ActivityData> ();
 }