コード例 #1
0
        public override NWActionConfig GetDefaultConfig(GetDefaultConfigContext context)
        {
            NWActionConfig c = new NWActionConfig(this);

            c.Parameters = new ActivityParameter[4];

            c.Parameters[0]                = new ActivityParameter();
            c.Parameters[0].Name           = Parameter_lookupList;
            c.Parameters[0].PrimitiveValue = new PrimitiveValue();

            c.Parameters[1]                = new ActivityParameter();
            c.Parameters[1].Name           = Parameter_itemID;
            c.Parameters[1].PrimitiveValue = new PrimitiveValue();

            c.Parameters[2]                = new ActivityParameter();
            c.Parameters[2].Name           = Parameter_FieldValue;
            c.Parameters[2].PrimitiveValue = new PrimitiveValue();

            c.Parameters[3]                = new ActivityParameter();
            c.Parameters[3].Name           = Parameter_TaxonomyFieldName;
            c.Parameters[3].PrimitiveValue = new PrimitiveValue();

            c.TLabel  = ActivityReferenceCollection.FindByAdapter(this).Name;
            c.IsValid = false;
            return(c);
        }
コード例 #2
0
        /// <summary>
        /// Get the default configuration for the workflow action.
        /// </summary>
        /// <param name="context">The context in which the method was invoked.</param>
        /// <returns>The default configuration for the workflow action.</returns>
        /// <remarks></remarks>
        public override NWActionConfig GetDefaultConfig(GetDefaultConfigContext context)
        {
            NWActionConfig config = new NWActionConfig(this);

            config.Parameters = new ActivityParameter[3];

            config.Parameters[0]                          = new ActivityParameter();
            config.Parameters[0].Name                     = UploadItemToSignActivity.KeyApproversPropertyName;
            config.Parameters[0].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[0].PrimitiveValue.Value     = string.Empty;
            config.Parameters[0].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[1]                          = new ActivityParameter();
            config.Parameters[1].Name                     = UploadItemToSignActivity.KeyUrlMiscInfoPropertyName;
            config.Parameters[1].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[1].PrimitiveValue.Value     = string.Empty;
            config.Parameters[1].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[2]          = new ActivityParameter();
            config.Parameters[2].Name     = UploadItemToSignActivity.KeyOutAdobeAgreementIDProperty;
            config.Parameters[2].Variable = new NWWorkflowVariable();

            config.TLabel = ActivityReferenceCollection.FindByAdapter(this).Name;
            return(config);
        }
コード例 #3
0
        /// <summary>
        /// Get the default configuration for the workflow action.
        /// </summary>
        /// <param name="context">The context in which the method was invoked.</param>
        /// <returns>The default configuration for the workflow action.</returns>
        /// <remarks></remarks>
        public override NWActionConfig GetDefaultConfig(GetDefaultConfigContext context)
        {
            NWActionConfig config = new NWActionConfig(this);

            config.Parameters = new ActivityParameter[4];

            config.Parameters[0]                          = new ActivityParameter();
            config.Parameters[0].Name                     = CheckAgreementStatusActivity.KeyAgreementID;
            config.Parameters[0].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[0].PrimitiveValue.Value     = string.Empty;
            config.Parameters[0].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[1]          = new ActivityParameter();
            config.Parameters[1].Name     = CheckAgreementStatusActivity.KeyOutStaus;
            config.Parameters[1].Variable = new NWWorkflowVariable();


            config.Parameters[2]          = new ActivityParameter();
            config.Parameters[2].Name     = CheckAgreementStatusActivity.KeyOutPendingApprovers;
            config.Parameters[2].Variable = new NWWorkflowVariable();

            config.Parameters[3]          = new ActivityParameter();
            config.Parameters[3].Name     = CheckAgreementStatusActivity.KeyOutEvents;
            config.Parameters[3].Variable = new NWWorkflowVariable();


            config.TLabel = ActivityReferenceCollection.FindByAdapter(this).Name;
            return(config);
        }
コード例 #4
0
        /// <summary>
        /// Get the default configuration for the workflow action.
        /// </summary>
        /// <param name="context">The context in which the method was invoked.</param>
        /// <returns>The default configuration for the workflow action.</returns>
        /// <remarks></remarks>
        public override NWActionConfig GetDefaultConfig(GetDefaultConfigContext context)
        {
            NWActionConfig config = new NWActionConfig(this);

            config.Parameters = new ActivityParameter[5];

            config.Parameters[0]                          = new ActivityParameter();
            config.Parameters[0].Name                     = DownloadDocumentActivity.KeyAgreementID;
            config.Parameters[0].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[0].PrimitiveValue.Value     = string.Empty;
            config.Parameters[0].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[1]                          = new ActivityParameter();
            config.Parameters[1].Name                     = DownloadDocumentActivity.KeyDestWebUrl;
            config.Parameters[1].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[1].PrimitiveValue.Value     = string.Empty;
            config.Parameters[1].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[2]                          = new ActivityParameter();
            config.Parameters[2].Name                     = DownloadDocumentActivity.KeyDestDocLib;
            config.Parameters[2].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[2].PrimitiveValue.Value     = string.Empty;
            config.Parameters[2].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[3]                          = new ActivityParameter();
            config.Parameters[3].Name                     = DownloadDocumentActivity.KeyDestDocName;
            config.Parameters[3].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[3].PrimitiveValue.Value     = string.Empty;
            config.Parameters[3].PrimitiveValue.ValueType = SPFieldType.Text.ToString();


            config.Parameters[4]          = new ActivityParameter();
            config.Parameters[4].Name     = DownloadDocumentActivity.KeyOutDocumentID;
            config.Parameters[4].Variable = new NWWorkflowVariable();


            config.TLabel = ActivityReferenceCollection.FindByAdapter(this).Name;
            return(config);
        }
コード例 #5
0
        public override NWActionConfig GetDefaultConfig(GetDefaultConfigContext context)
        {
            // Build the default parameters for the action. Populate an array of ActivityParameters to represent each parameter.

            NWActionConfig config = new NWActionConfig(this);

            config.Parameters = new ActivityParameter[9];

            config.Parameters[0]                          = new ActivityParameter();
            config.Parameters[0].Name                     = PSScriptProperty;
            config.Parameters[0].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[0].PrimitiveValue.Value     = string.Empty;
            config.Parameters[0].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[1]                      = new ActivityParameter();
            config.Parameters[1].Name                 = LoginUserNameProperty;
            config.Parameters[1].PrimitiveValue       = new PrimitiveValue();
            config.Parameters[1].PrimitiveValue.Value = string.Empty;

            config.Parameters[2]                      = new ActivityParameter();
            config.Parameters[2].Name                 = LoginPasswordProperty;
            config.Parameters[2].PrimitiveValue       = new PrimitiveValue();
            config.Parameters[2].PrimitiveValue.Value = string.Empty;

            config.Parameters[3]          = new ActivityParameter();
            config.Parameters[3].Name     = ResultOutputProperty;
            config.Parameters[3].Variable = new NWWorkflowVariable();

            config.Parameters[4]                          = new ActivityParameter();
            config.Parameters[4].Name                     = SSLEnabledProperty;
            config.Parameters[4].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[4].PrimitiveValue.Value     = false.ToString();
            config.Parameters[4].PrimitiveValue.ValueType = SPFieldType.Boolean.ToString();

            config.Parameters[5]                          = new ActivityParameter();
            config.Parameters[5].Name                     = ComputerNameProperty;
            config.Parameters[5].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[5].PrimitiveValue.Value     = string.Empty;
            config.Parameters[5].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[6]                          = new ActivityParameter();
            config.Parameters[6].Name                     = PortNumberProperty;
            config.Parameters[6].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[6].PrimitiveValue.Value     = "5985";
            config.Parameters[6].PrimitiveValue.ValueType = SPFieldType.Integer.ToString();

            config.Parameters[7]                          = new ActivityParameter();
            config.Parameters[7].Name                     = AppNameProperty;
            config.Parameters[7].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[7].PrimitiveValue.Value     = "/wsman";
            config.Parameters[7].PrimitiveValue.ValueType = SPFieldType.Text.ToString();

            config.Parameters[8]                          = new ActivityParameter();
            config.Parameters[8].Name                     = ShellUriProperty;
            config.Parameters[8].PrimitiveValue           = new PrimitiveValue();
            config.Parameters[8].PrimitiveValue.Value     = "http://schemas.microsoft.com/powershell/Microsoft.PowerShell";
            config.Parameters[8].PrimitiveValue.ValueType = SPFieldType.Text.ToString();


            // Set the default label for the action.
            config.TLabel = ActivityReferenceCollection.FindByAdapter(this).Name;
            return(config);
        }