/// <summary> /// Gets the current configuration from the workflow action. /// </summary> /// <param name="context">The context in which the method was invoked.</param> /// <returns>The current configuration.</returns> public override NWActionConfig GetConfig(RetrieveConfigContext context) { NWActionConfig config = this.GetDefaultConfig(context); Dictionary <string, ActivityParameterHelper> parameters = config.GetParameterHelpers(); parameters[UploadItemToSignActivity.KeyApproversPropertyName].RetrieveValue(context.Activity, UploadItemToSignActivity.ApproversProperty, context); parameters[UploadItemToSignActivity.KeyUrlMiscInfoPropertyName].RetrieveValue(context.Activity, UploadItemToSignActivity.UrlMiscInfoProperty, context); parameters[UploadItemToSignActivity.KeyOutAdobeAgreementIDProperty].RetrieveValue(context.Activity, UploadItemToSignActivity.OutAdobeAgreementIDProperty, context); return(config); }
public override NWActionConfig GetConfig(RetrieveConfigContext context) { NWActionConfig config = this.GetDefaultConfig(context); Dictionary <string, ActivityParameterHelper> parameters = config.GetParameterHelpers(); ActivityParameterHelper.RetrieveValue(context.Activity, TaxonomyUpdateActivity.lookupListProperty, parameters[Parameter_lookupList].Parameter, context); ActivityParameterHelper.RetrieveValue(context.Activity, TaxonomyUpdateActivity.itemIDProperty, parameters[Parameter_itemID].Parameter, context); ActivityParameterHelper.RetrieveValue(context.Activity, TaxonomyUpdateActivity.FieldValueProperty, parameters[Parameter_FieldValue].Parameter, context); ActivityParameterHelper.RetrieveValue(context.Activity, TaxonomyUpdateActivity.TaxonomyFieldNameProperty, parameters[Parameter_TaxonomyFieldName].Parameter, context); return(config); }
/// <summary> /// Gets the current configuration from the workflow action. /// </summary> /// <param name="context">The context in which the method was invoked.</param> /// <returns>The current configuration.</returns> public override NWActionConfig GetConfig(RetrieveConfigContext context) { NWActionConfig config = this.GetDefaultConfig(context); Dictionary <string, ActivityParameterHelper> parameters = config.GetParameterHelpers(); parameters[CheckAgreementStatusActivity.KeyAgreementID].RetrieveValue(context.Activity, CheckAgreementStatusActivity.AgreementIDProperty, context); parameters[CheckAgreementStatusActivity.KeyOutStaus].RetrieveValue(context.Activity, CheckAgreementStatusActivity.StatusProperty, context); parameters[CheckAgreementStatusActivity.KeyOutPendingApprovers].RetrieveValue(context.Activity, CheckAgreementStatusActivity.PendingApproversProperty, context); parameters[CheckAgreementStatusActivity.KeyOutEvents].RetrieveValue(context.Activity, CheckAgreementStatusActivity.EventsProperty, context); return(config); }
/// <summary> /// Gets the current configuration from the workflow action. /// </summary> /// <param name="context">The context in which the method was invoked.</param> /// <returns>The current configuration.</returns> public override NWActionConfig GetConfig(RetrieveConfigContext context) { NWActionConfig config = this.GetDefaultConfig(context); Dictionary <string, ActivityParameterHelper> parameters = config.GetParameterHelpers(); parameters[DownloadDocumentActivity.KeyAgreementID].RetrieveValue(context.Activity, DownloadDocumentActivity.AgreementIDProperty, context); parameters[DownloadDocumentActivity.KeyDestWebUrl].RetrieveValue(context.Activity, DownloadDocumentActivity.DestWebUrlProperty, context); parameters[DownloadDocumentActivity.KeyDestDocLib].RetrieveValue(context.Activity, DownloadDocumentActivity.DestDocLibProperty, context); parameters[DownloadDocumentActivity.KeyDestDocName].RetrieveValue(context.Activity, DownloadDocumentActivity.DestDocNameProperty, context); parameters[DownloadDocumentActivity.KeyOutDocumentID].RetrieveValue(context.Activity, DownloadDocumentActivity.OutDocumentIDProperty, context); return(config); }
/// <summary> /// Gets the current configuration from the workflow action. /// </summary> /// <param name="context">The context in which the method was invoked.</param> /// <returns>The current configuration.</returns> public override NWActionConfig GetConfig(RetrieveConfigContext context) { NWActionConfig config = this.GetDefaultConfig(context); Dictionary <string, ActivityParameterHelper> parameters = config.GetParameterHelpers(); parameters[SendDocForAuthoringActivity.KeyApproversPropertyName].RetrieveValue(context.Activity, SendDocForAuthoringActivity.ApproversProperty, context); parameters[SendDocForAuthoringActivity.KeyAgreementName].RetrieveValue(context.Activity, SendDocForAuthoringActivity.AgreementNameProperty, context); parameters[SendDocForAuthoringActivity.KeyUrlMiscInfoPropertyName].RetrieveValue(context.Activity, SendDocForAuthoringActivity.UrlMiscInfoProperty, context); parameters[SendDocForAuthoringActivity.KeyCompendiumDocsID].RetrieveValue(context.Activity, SendDocForAuthoringActivity.CompendiumDocsIDProperty, context); parameters[SendDocForAuthoringActivity.KeyOutAdobeAgreementIDProperty].RetrieveValue(context.Activity, SendDocForAuthoringActivity.OutAdobeAgreementIDProperty, context); parameters[SendDocForAuthoringActivity.KeyOutAuthoringUrlProperty].RetrieveValue(context.Activity, SendDocForAuthoringActivity.OutAuthoringUrlProperty, context); return(config); }
public override NWActionConfig GetConfig(RetrieveConfigContext context) { // Read the properties from context.Activity and update the values in the NWActionConfig. NWActionConfig config = this.GetDefaultConfig(context); Dictionary <string, ActivityParameterHelper> parameters = config.GetParameterHelpers(); parameters[PSScriptProperty].RetrieveValue(context.Activity, Activity.PSScriptProperty, context); parameters[ResultOutputProperty].RetrieveValue(context.Activity, Activity.ResultOutputProperty, context); parameters[LoginUserNameProperty].RetrieveValue(context.Activity, Activity.LoginUserNameProperty, context); parameters[LoginPasswordProperty].RetrieveValue(context.Activity, Activity.LoginPasswordProperty, context); parameters[SSLEnabledProperty].RetrieveValue(context.Activity, Activity.SSLEnabledProperty, context); parameters[ComputerNameProperty].RetrieveValue(context.Activity, Activity.ComputerNameProperty, context); parameters[PortNumberProperty].RetrieveValue(context.Activity, Activity.PortNumberProperty, context); parameters[AppNameProperty].RetrieveValue(context.Activity, Activity.AppNameProperty, context); parameters[ShellUriProperty].RetrieveValue(context.Activity, Activity.ShellUriProperty, context); return(config); }