/// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            try
            {
                // Example of how to add a property definition to the step.
                IPropertyDefinition pd;
                pd             = schema.AddStringProperty("ExecutableLocation", "");
                pd.DisplayName = "Executable Location";
                pd.Description = "The full path to the executable program (.exe)";
                pd.Required    = true;



                // A repeat group of columns and expression where the data will be written
                IRepeatGroupPropertyDefinition arguments = schema.AddRepeatGroupProperty("Arguments");
                arguments.Description = "The arguments for the executable. See Argument Logic for options";
                pd             = arguments.PropertyDefinitions.AddExpressionProperty("ArgumentName", String.Empty);
                pd.Description = "The name of the argument";
                pd             = arguments.PropertyDefinitions.AddExpressionProperty("Expression", String.Empty);
                pd.Description = "The Simio expression that will assigned to the argument.";

                pd             = schema.AddBooleanProperty("WaitForExecutableToExit");
                pd.DisplayName = "Wait For Exit";
                pd.Description = "If true, then Step will wait in the Step until the executable completes its run";
                pd.Required    = true;
                pd.SetDefaultString(schema, "False");

                IBooleanPropertyDefinition bpd = schema.AddBooleanProperty("CreateWindow");
                bpd.DisplayName = "Create Window";
                bpd.Description = "If True, the executable will appear in a new window. Useful for debugging";
                bpd.Required    = true;
                bpd.SetDefaultString(schema, "True");

                IEnumPropertyDefinition epd = schema.AddEnumProperty("ArgumentLogic", typeof(EnumArgLogic));
                epd.Description = "Logic that describes how the Simio Arguments are created";
                epd.SetDefaultString(schema, "None");
                epd.Required = true;

                // Example of how to add a property definition to the step.
                pd             = schema.AddStringProperty("Delimiter", "");
                pd.DisplayName = "Delimiter";
                pd.Description = "The delimiter to use around each argument when calling the executable";
                pd.Required    = true;

                bpd             = schema.AddBooleanProperty("UseShellExecute");
                bpd.DisplayName = "Use Shell Execute";
                bpd.Description = "If True, the executable will be run within a Windows Shell.";
                bpd.Required    = true;
                bpd.SetDefaultString(schema, "True");
            }
            catch (Exception ex)
            {
                throw new ApplicationException($"Error creating RunExecutables Schema. Err={ex.Message}");
            }
        }
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            IPropertyDefinition pd;

            // Reference to the excel to write to
            pd = schema.AddElementProperty("ExcelConnectEPPlus", ExcelConnectEPPlusElementDefinition.MY_ID);

            // And a format specifier
            pd             = schema.AddStringProperty("Worksheet", String.Empty);
            pd.Description = "Worksheet Property";
            pd.Required    = true;

            pd             = schema.AddExpressionProperty("Row", "1");
            pd.Description = "Row Property";
            pd.Required    = true;

            pd             = schema.AddExpressionProperty("StartingColumn", "1");
            pd.DisplayName = "Starting Column";
            pd.Description = "Starting Column Property";
            pd.Required    = true;

            // A repeat group of values to write out
            IRepeatGroupPropertyDefinition parts = schema.AddRepeatGroupProperty("Items");

            parts.Description = "The expression items to be written out.";

            pd             = parts.PropertyDefinitions.AddExpressionProperty("Expression", String.Empty);
            pd.Description = "Expression value to be written out.";
        }
Example #3
0
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            IPropertyDefinition pd;

            // Reference to the file to read from
            pd = schema.AddElementProperty("ExcelConnectEPPlus", ExcelConnectEPPlusElementDefinition.MY_ID);

            pd             = schema.AddStringProperty("Worksheet", String.Empty);
            pd.Description = "Worksheet Property";
            pd.Required    = true;

            pd             = schema.AddExpressionProperty("Row", "1");
            pd.Description = "Row Property";
            pd.Required    = true;

            pd             = schema.AddExpressionProperty("StartingColumn", "1");
            pd.DisplayName = "Starting Column";
            pd.Description = "Column Property";
            pd.Required    = true;

            // A repeat group of states to read into
            IRepeatGroupPropertyDefinition parts = schema.AddRepeatGroupProperty("States");

            parts.Description = "The state values to read the values into";

            pd             = parts.PropertyDefinitions.AddStateProperty("State");
            pd.Description = "A state to read a value into from Excel.";
        }
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            IPropertyDefinition pd = null;

            pd             = schema.AddStringProperty("SqlInstance", "");
            pd.DisplayName = "SQL Instance";
            pd.Description = @"The SQL Instance name, aka DataSource. E.g. (localhost)\SqlExress01";

            pd             = schema.AddStringProperty("SqlDbName", "");
            pd.DisplayName = @"SQL DB Name";
            pd.Description = "The database name, or 'Initial Catalog'";

            pd             = schema.AddDateTimeProperty("StartDateTime", DateTime.Now);
            pd.DisplayName = @"Start Date/Time";
            pd.Description = "When the simulation starts. Defaults to the current time.";
        }
Example #5
0
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            // Example of how to add a property definition to the step.
            IPropertyDefinition pd;

            pd             = schema.AddStringProperty("StepLocation", "??");
            pd.DisplayName = "Step's Location";
            pd.Description = "The Step's location, e.g. On entering.";
            pd.Required    = true;
        }
Example #6
0
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            // Example of how to add a property definition to the step.
            IPropertyDefinition pd;

            pd             = schema.AddStringProperty("Message", "No message");
            pd.DisplayName = "Message";
            pd.Description = "The message to display";
            pd.Required    = true;
        }
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            // Example of how to add a property definition to the step.
            IPropertyDefinition pd;

            pd             = schema.AddStringProperty("FolderPath", @"c:\(test)");
            pd.DisplayName = "FolderPath";
            pd.Description = "The FolderPath that is used to simulate an external Device.";
            pd.Required    = true;
        }
Example #8
0
        /// <summary>
        /// Method called that defines the property schema for the step.
        /// </summary>
        public void DefineSchema(IPropertyDefinitions schema)
        {
            // property definition that will be added to the schema of this step
            IPropertyDefinition pd;

            // Add the connector element property definition to the step.
            pd             = schema.AddElementProperty("MqttServer", MqttPublishConnectorDefinition.MY_ID);
            pd.DisplayName = "MQTT Server";
            pd.Description = "The MQTT URL and port of the MQTT server(broker). For example, localhost:1883. Default port is 1883.";
            pd.Required    = true;

            pd             = schema.AddStringProperty("MqttTopic", "MqttSample/MyTopic");
            pd.DisplayName = "The MQTT Topic";
            pd.Description = "The MQTT topic. Case sensitive. By convention, hierarchical using slashes. Example: PlantTopeka/Machine1/State/Speed";
            pd.Required    = true;

            pd             = schema.AddExpressionProperty("MqttPayload", "0.0");
            pd.DisplayName = "Payload";
            pd.Description = "The payload data to send with the Topic";
            pd.Required    = true;
        }