/// <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)); }
/// <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(); }
/// <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>(); }
/// <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> (); }