Exemple #1
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Mailbox Email Address").WithDefaultValue("*****@*****.**");
     designer.AddCorellatedData(typeof(OutOfOffice));
 }
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("appointment ID");
     designer.AddInput("Alternate Mailbox").NotRequired();
     designer.AddOutput("appointment ID");
 }
Exemple #3
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Filter").WithDefaultValue("PackageID LIKE '%' AND ProgramName LIKE '%'");
     designer.AddCorellatedData(typeof(program));
     designer.AddOutput("Number of Programs");
 }
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Package ID").WithDefaultValue("ABC00000");
     designer.AddCorellatedData(typeof(package));
     designer.AddOutput("Number of Packages");
 }
Exemple #5
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Source Container ID").WithDefaultValue(1);
     designer.AddInput("Destination Container ID").WithDefaultValue(2);
     designer.AddOutput("Number of Object Container Nodes");
 }
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Clear History Before Date").WithDateTimeBrowser().ToString();
     designer.AddOutput("Action Result").AsNumber().WithDescription("Result of Clearing Request");
     designer.AddCorellatedData(typeof(FIMSyncManagementAgents));
 }
Exemple #7
0
        private void AddInput(IActivityDesigner designer, PSObject parameter)
        {
            if ((parameter == null) ||
                (parameter.Properties["Name"] == null) ||
                (parameter.Properties["ParameterType"] == null))
            {
                return;
            }
            string propertyName = parameter.Properties["Name"].Value.ToString();
            string propertyType = parameter.Properties["ParameterType"].Value.ToString();
            bool   isMandatory  = Boolean.Parse(parameter.Properties["IsMandatory"].Value.ToString());

            switch (propertyType)
            {
            case ("System.String"):
                if (isMandatory)
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType));
                }
                else
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired();
                }
                // designer.AddOutput(propertyName).WithDescription(propertyType).AsString();
                break;

            case ("System.Int32"):
            case ("System.UInt32"):
                if (isMandatory)
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType));
                }
                else
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired();
                }
                // designer.AddOutput(propertyName).WithDescription(propertyType).AsNumber();
                break;

            case ("System.Management.Automation.SwitchParameter"):
                if (isMandatory)
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithBooleanBrowser();
                }
                else
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithBooleanBrowser().NotRequired();
                }
                // designer.AddOutput(propertyName).WithDescription(propertyType).AsString();
                break;

            case ("System.Management.Automation.ActionPreference"):
                string[] options = SetListValuesFromEnum(propertyType);
                if (options == null)
                {
                    if (isMandatory)
                    {
                        designer.AddInput(CreateInputFieldName(propertyName, propertyType));
                    }
                    else
                    {
                        designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired();
                    }
                }
                else
                {
                    if (isMandatory)
                    {
                        designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithListBrowser(options);
                    }
                    else
                    {
                        designer.AddInput(CreateInputFieldName(propertyName, propertyType)).WithListBrowser(options).NotRequired();
                    }
                }
                designer.AddOutput(propertyName).WithDescription(propertyType).AsString();
                break;

            default:
                if (isMandatory)
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType));
                }
                else
                {
                    designer.AddInput(CreateInputFieldName(propertyName, propertyType)).NotRequired();
                }
                designer.AddOutput(propertyName).WithDescription(propertyType).AsString();
                break;
            }
        }
Exemple #8
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Object LDAP Path").WithDefaultValue("LDAP://Contoso.com/CN=ObjectName,OU=Container,DC=Contoso,DC=Com");
     designer.AddOutput("Disabled Object LDAP Path").AsString();
 }
        public void Design(IActivityDesigner designer)
        {
            designer.AddInput("Target Zip");

            designer.AddOutput("Number of Files");
        }
Exemple #10
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput(PATH).WithFileBrowser();
     designer.AddCorellatedData(typeof(ACLEntry));
 }
Exemple #11
0
        public void Design(IActivityDesigner designer)
        {
            string[] PriorityOptions = new string[6];
            PriorityOptions[0] = "AboveNormal";
            PriorityOptions[1] = "BelowNormal";
            PriorityOptions[2] = "High";
            PriorityOptions[3] = "Idle";
            PriorityOptions[4] = "Normal";
            PriorityOptions[5] = "Realtime";

            string[] hiddenOptions = { "True", "False" };

            designer.AddInput("Computer Name");
            designer.AddInput("Task Name");
            designer.AddInput("Application Name").NotRequired();
            designer.AddInput("Parameters").NotRequired();
            designer.AddInput("Comment").NotRequired();
            designer.AddInput("Creator").NotRequired();
            designer.AddInput("Working Directory").NotRequired();
            designer.AddInput("Account Name").NotRequired();
            designer.AddInput("Password").PasswordProtect().NotRequired();
            designer.AddInput("Hidden").NotRequired().WithListBrowser(hiddenOptions);
            designer.AddInput("IdleWaitDeadlineMinutes").NotRequired();
            designer.AddInput("IdleWaitMinutes").NotRequired();
            designer.AddInput("Max Runtime (Seconds)").NotRequired();
            designer.AddInput("Priority").NotRequired().WithListBrowser(PriorityOptions);

            designer.AddCorellatedData(typeof(opalisTask));
        }
Exemple #12
0
        public void Design(IActivityDesigner designer)
        {
            WqlConnectionManager connection = CM2012Interop.connectSCCMServer(settings.SCCMSERVER, settings.UserName, settings.Password);

            designer.AddInput("Advertisement ID").WithDefaultValue("ABC00000");

            designer.AddInput("BATTERY_POWER").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN_FROM_CD").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DOWNLOAD_FROM_CD").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN_FROM_LOCAL_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DOWNLOAD_FROM_LOCAL_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DONT_RUN_NO_LOCAL_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DOWNLOAD_FROM_REMOTE_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN_FROM_REMOTE_DISPPOINT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DOWNLOAD_ON_DEMAND_FROM_LOCAL_DP").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DOWNLOAD_ON_DEMAND_FROM_REMOTE_DP").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("BALLOON_REMINDERS_REQUIRED").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RERUN_ALWAYS").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RERUN_NEVER").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RERUN_IF_FAILED").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RERUN_IF_SUCCEEDED").WithDefaultValue(false).WithBooleanBrowser();

            designer.AddCorellatedData(typeof(advertisement));
            designer.AddOutput("Number of Advertisements");
        }
Exemple #13
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Computer Name");
     designer.AddInput("Task Name");
     designer.AddOutput("Task Status").AsString();
 }
Exemple #14
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Folder ID").WithDefaultValue(1);
     designer.AddOutput("Number of Object Container Nodes");
 }
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Folder Path");
     designer.AddCorellatedData(typeof(RunbookInst));
 }
Exemple #16
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Filter").WithDefaultValue("CI_ID LIKE '%'");
     designer.AddCorellatedData(typeof(driver));
     designer.AddOutput("Number of Drivers");
 }
Exemple #17
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("appointment ID");
     designer.AddOutput("appointment ID");
 }
Exemple #18
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("VM");
     designer.AddInput("Name").NotRequired();
     designer.AddCorellatedData(typeof(snapshot));
 }
Exemple #19
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Source File Path");
     designer.AddInput("Destination File Path").WithFileBrowser().WithDefaultValue("\\myfileserver\fileShare");
     designer.AddInput("Overwrite Local File").WithListBrowser(new string[] { "True", "False" }).WithDefaultValue("True");
 }
Exemple #20
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Parent Collection ID").WithDefaultValue("AAA00000");
     designer.AddCorellatedData(typeof(collection));
     designer.AddOutput("Number of Collections");
 }
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Computer Name");
     designer.AddInput("Task Name");
     designer.AddCorellatedData(typeof(OpalisTaskTrigger));
 }
Exemple #22
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Input String");
     designer.AddCorellatedData(typeof(Line));
 }
Exemple #23
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Key Path:  HKLM:\\");
     designer.AddInput("Server Name").WithComputerBrowser();
     designer.AddOutput("Results").AsString();
 }
Exemple #24
0
        public void Design(IActivityDesigner designer)
        {
            designer.AddInput("Package ID").WithDefaultValue("ABC00000");
            designer.AddInput("Program Name").WithDefaultValue("PROGRAM NAME");

            designer.AddInput("UNATTENDED").WithDefaultValue(true).WithBooleanBrowser();
            designer.AddInput("USER CONTEXT").WithDefaultValue(true).WithBooleanBrowser();
            designer.AddInput("EVERY USER").WithDefaultValue(true).WithBooleanBrowser();
            designer.AddInput("USE UNC PATH").WithDefaultValue(true).WithBooleanBrowser();

            designer.AddInput("Authorized Dynamic Install").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("USE CUSTOM PROGRESS MSG").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DEFAULT PROGRAM").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DISABLE MOM ALERT ON RUNNING").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("MOM ALERT ON FAIL").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN DEPENDANT ALWAYS").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("WINDOWS CE").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("COUNTDOWN").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("FORCE RERUN").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("DISABLED").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("ADMIN RIGHTS").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("USE CUSTOM PROGRESS MSG").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("NO USER LOGGED IN").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("OK TO QUIT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("OK TO REBOOT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("PERSIST CONNECTION").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN MINIMIZED").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN MAXIMIZED").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("HIDE WINDOW").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("OK TO LOGOFF").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("RUN ACCOUNT").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("ANY PLATFORM").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("STILL RUNNING").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("SUPPORT UNINSTALL").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("Platform Not Supported").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("SHOW IN ARP").WithDefaultValue(false).WithBooleanBrowser();

            designer.AddCorellatedData(typeof(program));
            designer.AddOutput("Number of Programs");
        }
Exemple #25
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("User LDAP Path").WithDefaultValue("LDAP://Contoso.com/CN=UserName,OU=Container,DC=Contoso,DC=Com");
     designer.AddCorellatedData(typeof(ADObject));
 }
Exemple #26
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Input String");
     designer.AddInput("Line");
     designer.AddOutput("Output Line").AsString();
 }
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Filter").WithDefaultValue("AdvertisementID LIKE '%'");
     designer.AddCorellatedData(typeof(advertisement));
     designer.AddOutput("Number of Advertisements");
 }
Exemple #28
0
        public void Design(IActivityDesigner designer)
        {
            designer.AddInput("Assignment Name").WithDefaultValue("Assignment NAME");
            designer.AddInput("Apply To Sub Targets").WithDefaultValue(true).WithBooleanBrowser();
            designer.AddInput("Assigned CIs (CSV)").WithDefaultValue("1,2,3");
            designer.AddInput("Assignment Description").WithDefaultValue("Description");
            designer.AddInput("Assignment Action").WithDefaultValue(2);
            designer.AddInput("Desired Config Type").WithDefaultValue(1).WithListBrowser(new int[] { 0, 1 });
            designer.AddInput("DP Locality").WithDefaultValue(80);
            designer.AddInput("Locale ID").WithDefaultValue(1033);
            designer.AddInput("Log Compliace To Windows Event Log").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("Notify User").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("Raise MOM Alert of Failure").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("Read Only").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("Send Detailed Non Compliance Status").WithDefaultValue(false).WithBooleanBrowser();
            designer.AddInput("Start Time").WithDefaultValue("5/5/2005 5:05PM");
            designer.AddInput("Suppress Reboot").WithDefaultValue(1).WithListBrowser(new int[] { 0, 1 });
            designer.AddInput("Target Collection ID").WithDefaultValue("AAA00000");
            designer.AddInput("Use GMT Times").WithDefaultValue(true).WithBooleanBrowser();

            designer.AddCorellatedData(typeof(updatesAssignment));
            designer.AddOutput("Number of Updates Assignments");
        }
Exemple #29
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Filter").WithDefaultValue("PackageID LIKE '%'");
     designer.AddCorellatedData(typeof(bootImagePackage));
     designer.AddOutput("Number of Packages");
 }
Exemple #30
0
 public void Design(IActivityDesigner designer)
 {
     designer.AddInput("Filter").WithDefaultValue("CI_ID LIKE '%'");
     designer.AddCorellatedData(typeof(authorizationList));
     designer.AddOutput("Number of Authorization Lists");
 }