Automatic command completion rules

When an incomplete command is generated (XML or from SQL Query), the following actions are performed automatically:

  1. Check that a value is assigned to each Auto-fill trigger parameter in the command. Auto-fill trigger parameters are defined in the Commands tab of the Sample Scheduler configuration.

    • If it is not the case, the command is not completed.

    • If it is the case, the command is a candidate for automatic completion with Auto-fills.

  2. If a command is a candidate for automatic completion, check the Auto-fills table for a template with the same set of Auto-fill trigger values.

  3. If an Auto-fill template exists, the command is completed with the values from the template. The parameters which are already assigned a value in the command are not overwritten by the value of the template.

    If you want to automatically fill the parameters SampleType and CalibrationRunType with their values defined in the template, you must remove the corresponding tags from the XML command. If the tags are empty or contain blanks, the XML is invalid and the command is not completed.

    If no template with the same set of Auto-fill trigger values exists, the command is not completed.

  4. After Auto-fills is completed, further steps for the automatic completion follow:

    • If default values are defined in the Sample Scheduler configuration (default state, default project, default user, default sample name, and/or default result name), and no value is assigned neither in the command nor in the template, the default parameter value is assigned to the incomplete command.

    • The command has to satisfy some business rules. The system checks whether some values for dilution factors 1-5, multipliers 1-5, and sample amount were specified in the command. If no values were specified, they are automatically assigned the value of 1.

  5. The completed command follows the XML validity process to determine whether it is valid or not. To learn more on the XML validity process, refer to chapter Command Validity Process of the Sample Scheduler for OpenLab Installation & Configuration Guide.